@bp1222/stats-api 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/index.d.mts +565 -0
  2. package/dist/index.d.ts +565 -0
  3. package/dist/index.js +1696 -0
  4. package/dist/index.mjs +1574 -0
  5. package/package.json +5 -4
  6. package/.github/workflows/publish.yaml +0 -24
  7. package/Makefile +0 -27
  8. package/openapitools.json +0 -17
  9. package/spec/components/parameters/parameters.yaml +0 -21
  10. package/spec/components/parameters/query/date.yaml +0 -5
  11. package/spec/components/parameters/query/endDate.yaml +0 -5
  12. package/spec/components/parameters/query/fields.yaml +0 -10
  13. package/spec/components/parameters/query/hydrate.yaml +0 -5
  14. package/spec/components/parameters/query/leagueId.yaml +0 -5
  15. package/spec/components/parameters/query/leagueIds.yaml +0 -7
  16. package/spec/components/parameters/query/season.yaml +0 -5
  17. package/spec/components/parameters/query/sportId.yaml +0 -6
  18. package/spec/components/parameters/query/startDate.yaml +0 -5
  19. package/spec/components/parameters/query/teamId.yaml +0 -5
  20. package/spec/components/schemas/division.yaml +0 -32
  21. package/spec/components/schemas/game.yaml +0 -153
  22. package/spec/components/schemas/gameTeam.yaml +0 -22
  23. package/spec/components/schemas/league.yaml +0 -62
  24. package/spec/components/schemas/leagueRecord.yaml +0 -15
  25. package/spec/components/schemas/record.yaml +0 -95
  26. package/spec/components/schemas/schedule.yaml +0 -41
  27. package/spec/components/schemas/schemas.yaml +0 -24
  28. package/spec/components/schemas/season.yaml +0 -53
  29. package/spec/components/schemas/sport.yaml +0 -21
  30. package/spec/components/schemas/standings.yaml +0 -24
  31. package/spec/components/schemas/team.yaml +0 -50
  32. package/spec/components/schemas/venue.yaml +0 -18
  33. package/spec/openapi.yaml +0 -32
  34. package/spec/paths/allSeasons.yaml +0 -23
  35. package/spec/paths/schedule.yaml +0 -20
  36. package/spec/paths/season.yaml +0 -18
  37. package/spec/paths/standings.yaml +0 -27
  38. package/spec/paths/teams.yaml +0 -33
  39. package/src/.openapi-generator/FILES +0 -25
  40. package/src/.openapi-generator/VERSION +0 -1
  41. package/src/.openapi-generator-ignore +0 -23
  42. package/src/apis/MlbApi.ts +0 -427
  43. package/src/apis/index.ts +0 -3
  44. package/src/index.ts +0 -5
  45. package/src/models/MLBDivision.ts +0 -164
  46. package/src/models/MLBGame.ts +0 -371
  47. package/src/models/MLBGameStatus.ts +0 -122
  48. package/src/models/MLBGameTeam.ts +0 -117
  49. package/src/models/MLBGameTeams.ts +0 -77
  50. package/src/models/MLBLeague.ts +0 -190
  51. package/src/models/MLBLeagueDates.ts +0 -132
  52. package/src/models/MLBLeagueRecord.ts +0 -87
  53. package/src/models/MLBRecord.ts +0 -337
  54. package/src/models/MLBSchedule.ts +0 -105
  55. package/src/models/MLBScheduleDay.ts +0 -108
  56. package/src/models/MLBScheduleDays.ts +0 -108
  57. package/src/models/MLBSeason.ts +0 -226
  58. package/src/models/MLBSeasons.ts +0 -67
  59. package/src/models/MLBSport.ts +0 -110
  60. package/src/models/MLBStandings.ts +0 -130
  61. package/src/models/MLBStandingsList.ts +0 -67
  62. package/src/models/MLBStreak.ts +0 -74
  63. package/src/models/MLBTeam.ts +0 -248
  64. package/src/models/MLBTeams.ts +0 -67
  65. package/src/models/MLBVenue.ts +0 -95
  66. package/src/models/index.ts +0 -22
  67. package/src/runtime.ts +0 -426
  68. package/tsconfig.json +0 -108
package/src/runtime.ts DELETED
@@ -1,426 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * MLB StatAPI
5
- * An spec API to consume the MLB Stat API
6
- *
7
- * The version of the OpenAPI document: 0.0.1
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- export const BASE_PATH = "https://statsapi.mlb.com/api".replace(/\/+$/, "");
17
-
18
- export interface ConfigurationParameters {
19
- basePath?: string; // override base path
20
- fetchApi?: FetchAPI; // override for fetch implementation
21
- middleware?: Middleware[]; // middleware to apply before/after fetch requests
22
- queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
23
- username?: string; // parameter for basic security
24
- password?: string; // parameter for basic security
25
- apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>); // parameter for apiKey security
26
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security
27
- headers?: HTTPHeaders; //header params we want to use on every request
28
- credentials?: RequestCredentials; //value for the credentials param we want to use on each request
29
- }
30
-
31
- export class Configuration {
32
- constructor(private configuration: ConfigurationParameters = {}) {}
33
-
34
- set config(configuration: Configuration) {
35
- this.configuration = configuration;
36
- }
37
-
38
- get basePath(): string {
39
- return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
40
- }
41
-
42
- get fetchApi(): FetchAPI | undefined {
43
- return this.configuration.fetchApi;
44
- }
45
-
46
- get middleware(): Middleware[] {
47
- return this.configuration.middleware || [];
48
- }
49
-
50
- get queryParamsStringify(): (params: HTTPQuery) => string {
51
- return this.configuration.queryParamsStringify || querystring;
52
- }
53
-
54
- get username(): string | undefined {
55
- return this.configuration.username;
56
- }
57
-
58
- get password(): string | undefined {
59
- return this.configuration.password;
60
- }
61
-
62
- get apiKey(): ((name: string) => string | Promise<string>) | undefined {
63
- const apiKey = this.configuration.apiKey;
64
- if (apiKey) {
65
- return typeof apiKey === 'function' ? apiKey : () => apiKey;
66
- }
67
- return undefined;
68
- }
69
-
70
- get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {
71
- const accessToken = this.configuration.accessToken;
72
- if (accessToken) {
73
- return typeof accessToken === 'function' ? accessToken : async () => accessToken;
74
- }
75
- return undefined;
76
- }
77
-
78
- get headers(): HTTPHeaders | undefined {
79
- return this.configuration.headers;
80
- }
81
-
82
- get credentials(): RequestCredentials | undefined {
83
- return this.configuration.credentials;
84
- }
85
- }
86
-
87
- export const DefaultConfig = new Configuration();
88
-
89
- /**
90
- * This is the base class for all generated API classes.
91
- */
92
- export class BaseAPI {
93
-
94
- private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
95
- private middleware: Middleware[];
96
-
97
- constructor(protected configuration = DefaultConfig) {
98
- this.middleware = configuration.middleware;
99
- }
100
-
101
- withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
102
- const next = this.clone<T>();
103
- next.middleware = next.middleware.concat(...middlewares);
104
- return next;
105
- }
106
-
107
- withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {
108
- const middlewares = preMiddlewares.map((pre) => ({ pre }));
109
- return this.withMiddleware<T>(...middlewares);
110
- }
111
-
112
- withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {
113
- const middlewares = postMiddlewares.map((post) => ({ post }));
114
- return this.withMiddleware<T>(...middlewares);
115
- }
116
-
117
- /**
118
- * Check if the given MIME is a JSON MIME.
119
- * JSON MIME examples:
120
- * application/json
121
- * application/json; charset=UTF8
122
- * APPLICATION/JSON
123
- * application/vnd.company+json
124
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
125
- * @return True if the given MIME is JSON, false otherwise.
126
- */
127
- protected isJsonMime(mime: string | null | undefined): boolean {
128
- if (!mime) {
129
- return false;
130
- }
131
- return BaseAPI.jsonRegex.test(mime);
132
- }
133
-
134
- protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {
135
- const { url, init } = await this.createFetchParams(context, initOverrides);
136
- const response = await this.fetchApi(url, init);
137
- if (response && (response.status >= 200 && response.status < 300)) {
138
- return response;
139
- }
140
- throw new ResponseError(response, 'Response returned an error code');
141
- }
142
-
143
- private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {
144
- let url = this.configuration.basePath + context.path;
145
- if (context.query !== undefined && Object.keys(context.query).length !== 0) {
146
- // only add the querystring to the URL if there are query parameters.
147
- // this is done to avoid urls ending with a "?" character which buggy webservers
148
- // do not handle correctly sometimes.
149
- url += '?' + this.configuration.queryParamsStringify(context.query);
150
- }
151
-
152
- const headers = Object.assign({}, this.configuration.headers, context.headers);
153
- Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
154
-
155
- const initOverrideFn =
156
- typeof initOverrides === "function"
157
- ? initOverrides
158
- : async () => initOverrides;
159
-
160
- const initParams = {
161
- method: context.method,
162
- headers,
163
- body: context.body,
164
- credentials: this.configuration.credentials,
165
- };
166
-
167
- const overriddenInit: RequestInit = {
168
- ...initParams,
169
- ...(await initOverrideFn({
170
- init: initParams,
171
- context,
172
- }))
173
- };
174
-
175
- let body: any;
176
- if (isFormData(overriddenInit.body)
177
- || (overriddenInit.body instanceof URLSearchParams)
178
- || isBlob(overriddenInit.body)) {
179
- body = overriddenInit.body;
180
- } else if (this.isJsonMime(headers['Content-Type'])) {
181
- body = JSON.stringify(overriddenInit.body);
182
- } else {
183
- body = overriddenInit.body;
184
- }
185
-
186
- const init: RequestInit = {
187
- ...overriddenInit,
188
- body
189
- };
190
-
191
- return { url, init };
192
- }
193
-
194
- private fetchApi = async (url: string, init: RequestInit) => {
195
- let fetchParams = { url, init };
196
- for (const middleware of this.middleware) {
197
- if (middleware.pre) {
198
- fetchParams = await middleware.pre({
199
- fetch: this.fetchApi,
200
- ...fetchParams,
201
- }) || fetchParams;
202
- }
203
- }
204
- let response: Response | undefined = undefined;
205
- try {
206
- response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
207
- } catch (e) {
208
- for (const middleware of this.middleware) {
209
- if (middleware.onError) {
210
- response = await middleware.onError({
211
- fetch: this.fetchApi,
212
- url: fetchParams.url,
213
- init: fetchParams.init,
214
- error: e,
215
- response: response ? response.clone() : undefined,
216
- }) || response;
217
- }
218
- }
219
- if (response === undefined) {
220
- if (e instanceof Error) {
221
- throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
222
- } else {
223
- throw e;
224
- }
225
- }
226
- }
227
- for (const middleware of this.middleware) {
228
- if (middleware.post) {
229
- response = await middleware.post({
230
- fetch: this.fetchApi,
231
- url: fetchParams.url,
232
- init: fetchParams.init,
233
- response: response.clone(),
234
- }) || response;
235
- }
236
- }
237
- return response;
238
- }
239
-
240
- /**
241
- * Create a shallow clone of `this` by constructing a new instance
242
- * and then shallow cloning data members.
243
- */
244
- private clone<T extends BaseAPI>(this: T): T {
245
- const constructor = this.constructor as any;
246
- const next = new constructor(this.configuration);
247
- next.middleware = this.middleware.slice();
248
- return next;
249
- }
250
- };
251
-
252
- function isBlob(value: any): value is Blob {
253
- return typeof Blob !== 'undefined' && value instanceof Blob;
254
- }
255
-
256
- function isFormData(value: any): value is FormData {
257
- return typeof FormData !== "undefined" && value instanceof FormData;
258
- }
259
-
260
- export class ResponseError extends Error {
261
- override name: "ResponseError" = "ResponseError";
262
- constructor(public response: Response, msg?: string) {
263
- super(msg);
264
- }
265
- }
266
-
267
- export class FetchError extends Error {
268
- override name: "FetchError" = "FetchError";
269
- constructor(public cause: Error, msg?: string) {
270
- super(msg);
271
- }
272
- }
273
-
274
- export class RequiredError extends Error {
275
- override name: "RequiredError" = "RequiredError";
276
- constructor(public field: string, msg?: string) {
277
- super(msg);
278
- }
279
- }
280
-
281
- export const COLLECTION_FORMATS = {
282
- csv: ",",
283
- ssv: " ",
284
- tsv: "\t",
285
- pipes: "|",
286
- };
287
-
288
- export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
289
-
290
- export type Json = any;
291
- export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
292
- export type HTTPHeaders = { [key: string]: string };
293
- export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };
294
- export type HTTPBody = Json | FormData | URLSearchParams;
295
- export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };
296
- export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
297
-
298
- export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>
299
-
300
- export interface FetchParams {
301
- url: string;
302
- init: RequestInit;
303
- }
304
-
305
- export interface RequestOpts {
306
- path: string;
307
- method: HTTPMethod;
308
- headers: HTTPHeaders;
309
- query?: HTTPQuery;
310
- body?: HTTPBody;
311
- }
312
-
313
- export function querystring(params: HTTPQuery, prefix: string = ''): string {
314
- return Object.keys(params)
315
- .map(key => querystringSingleKey(key, params[key], prefix))
316
- .filter(part => part.length > 0)
317
- .join('&');
318
- }
319
-
320
- function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {
321
- const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
322
- if (value instanceof Array) {
323
- const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
324
- .join(`&${encodeURIComponent(fullKey)}=`);
325
- return `${encodeURIComponent(fullKey)}=${multiValue}`;
326
- }
327
- if (value instanceof Set) {
328
- const valueAsArray = Array.from(value);
329
- return querystringSingleKey(key, valueAsArray, keyPrefix);
330
- }
331
- if (value instanceof Date) {
332
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
333
- }
334
- if (value instanceof Object) {
335
- return querystring(value as HTTPQuery, fullKey);
336
- }
337
- return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
338
- }
339
-
340
- export function mapValues(data: any, fn: (item: any) => any) {
341
- return Object.keys(data).reduce(
342
- (acc, key) => ({ ...acc, [key]: fn(data[key]) }),
343
- {}
344
- );
345
- }
346
-
347
- export function canConsumeForm(consumes: Consume[]): boolean {
348
- for (const consume of consumes) {
349
- if ('multipart/form-data' === consume.contentType) {
350
- return true;
351
- }
352
- }
353
- return false;
354
- }
355
-
356
- export interface Consume {
357
- contentType: string;
358
- }
359
-
360
- export interface RequestContext {
361
- fetch: FetchAPI;
362
- url: string;
363
- init: RequestInit;
364
- }
365
-
366
- export interface ResponseContext {
367
- fetch: FetchAPI;
368
- url: string;
369
- init: RequestInit;
370
- response: Response;
371
- }
372
-
373
- export interface ErrorContext {
374
- fetch: FetchAPI;
375
- url: string;
376
- init: RequestInit;
377
- error: unknown;
378
- response?: Response;
379
- }
380
-
381
- export interface Middleware {
382
- pre?(context: RequestContext): Promise<FetchParams | void>;
383
- post?(context: ResponseContext): Promise<Response | void>;
384
- onError?(context: ErrorContext): Promise<Response | void>;
385
- }
386
-
387
- export interface ApiResponse<T> {
388
- raw: Response;
389
- value(): Promise<T>;
390
- }
391
-
392
- export interface ResponseTransformer<T> {
393
- (json: any): T;
394
- }
395
-
396
- export class JSONApiResponse<T> {
397
- constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
398
-
399
- async value(): Promise<T> {
400
- return this.transformer(await this.raw.json());
401
- }
402
- }
403
-
404
- export class VoidApiResponse {
405
- constructor(public raw: Response) {}
406
-
407
- async value(): Promise<void> {
408
- return undefined;
409
- }
410
- }
411
-
412
- export class BlobApiResponse {
413
- constructor(public raw: Response) {}
414
-
415
- async value(): Promise<Blob> {
416
- return await this.raw.blob();
417
- };
418
- }
419
-
420
- export class TextApiResponse {
421
- constructor(public raw: Response) {}
422
-
423
- async value(): Promise<string> {
424
- return await this.raw.text();
425
- };
426
- }
package/tsconfig.json DELETED
@@ -1,108 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
-
5
- /* Projects */
6
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
-
13
- /* Language and Environment */
14
- "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
- // "jsx": "preserve", /* Specify what JSX code is generated. */
17
- // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
-
27
- /* Modules */
28
- "module": "commonjs", /* Specify what module code is generated. */
29
- // "rootDir": "./", /* Specify the root folder within your source files. */
30
- // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
- // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
- // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
- // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
- // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
- // "resolveJsonModule": true, /* Enable importing .json files. */
43
- // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
-
46
- /* JavaScript Support */
47
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
49
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
-
51
- /* Emit */
52
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58
- // "outDir": "./", /* Specify an output folder for all emitted files. */
59
- // "removeComments": true, /* Disable emitting comments. */
60
- // "noEmit": true, /* Disable emitting files from a compilation. */
61
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
63
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
64
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
65
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
66
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
67
- // "newLine": "crlf", /* Set the newline character for emitting files. */
68
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
69
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
70
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
71
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
72
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
73
-
74
- /* Interop Constraints */
75
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
76
- // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
77
- // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
78
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
79
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
80
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
81
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
82
-
83
- /* Type Checking */
84
- "strict": true, /* Enable all strict type-checking options. */
85
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
86
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
87
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
88
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
89
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
90
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
91
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
92
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
93
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
94
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
95
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
96
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
97
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
98
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
99
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
100
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
101
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
102
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
103
-
104
- /* Completeness */
105
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
106
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
107
- }
108
- }