-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#28 Adding documentation to the library.
- Loading branch information
Showing
21 changed files
with
1,049 additions
and
670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// ESLint config for formatting the resulting .d.ts files (<project name>/dist-ts/**/*.d.ts) that end up in NPM package for typing information. | ||
const { extends: extendsArray, plugins, rules } = require("./.eslintrc.cjs"); | ||
module.exports = { | ||
root: true, | ||
extends: extendsArray.filter((ext) => ext.startsWith("plugin:jsdoc/") || ext.startsWith("plugin:prettier/")), | ||
plugins: plugins.filter((plugin) => plugin === "jsdoc" || plugin === "prettier"), | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: "./tsconfig.out.json", | ||
sourceType: "module", | ||
ecmaVersion: "latest", | ||
tsconfigRootDir: __dirname, | ||
}, | ||
rules: Object.fromEntries(Object.entries(rules).filter(([ruleKey]) => ruleKey.startsWith("jsdoc/") || ruleKey.startsWith("prettier/"))), | ||
// So we won't get errors on comments disable e.g. @typescript-eslint/xyz rules. | ||
noInlineConfig: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
// Really waiting for that "export type *": https://github.com/microsoft/TypeScript/issues/37238 | ||
// If we just do "export * from", our index.[m]js file ends up with "export" statement as well, thus causing runtime errors. | ||
// Another option is rename .d.ts files into .ts files and end up with a bunch of empty .[m]js files and index.[m]js exporting those - not very optimal either.export * from "./headers"; | ||
export type { | ||
FinalMetadata, | ||
OpenAPIEndpointMD, | ||
OpenAPIEndpointStateInfo, | ||
OpenAPIArguments, | ||
OpenAPIArgumentsInput, | ||
OpenAPIArgumentsOutput, | ||
OpenAPIArgumentsQuery, | ||
OpenAPIArgumentsRequestHeaders, | ||
OpenAPIArgumentsResponseHeaders, | ||
OpenAPIArgumentsStatic, | ||
OpenAPIArgumentsURLData, | ||
OpenAPIMetadataProvider, | ||
OpenAPIParameterInput, | ||
OpenAPIParameterMedia, | ||
OpenAPIPathItemArg, | ||
PathsObjectInfo, | ||
} from "./openapi"; | ||
/** | ||
* @file This is entrypoint file for this package, exporting all non-internal files. | ||
*/ | ||
|
||
export type * from "./openapi.types"; | ||
export * from "./provider"; | ||
export * from "./jsonschema"; | ||
export * from "./utils"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.