diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index dc8c6de5..6f3bf294 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -77,7 +77,7 @@ jobs: ``` ${{ needs.benchmark.outputs.MASTER-BENCH }} ``` - + - uses: actions-ecosystem/action-remove-labels@v1 with: labels: | diff --git a/README.md b/README.md index f3a0d206..a684b256 100644 --- a/README.md +++ b/README.md @@ -678,7 +678,7 @@ expose your application to remote attacks. Users are responsible for sending trusted data. `fast-json-stringify` guarantees that you will get a valid output only if your input matches the schema or can be coerced to the schema. If your input -doesn't match the schema, you will get undefined behavior. +doesn't match the schema, you will get undefined behavior. ### Debug Mode @@ -699,7 +699,7 @@ const debugCompiled = fastJson({ console.log(debugCompiled) // it is a object contain code, ajv instance const rawString = debugCompiled.code // it is the generated code -console.log(rawString) +console.log(rawString) const stringify = fastJson.restore(debugCompiled) // use the generated string to get back the `stringify` function console.log(stringify({ firstName: 'Foo', surname: 'bar' })) // '{"firstName":"Foo"}' diff --git a/types/index.d.ts b/types/index.d.ts index 5ded284d..1abf2640 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -65,7 +65,7 @@ declare namespace build { */ $ref: string; } - + export interface AnySchema extends BaseSchema { } @@ -158,12 +158,12 @@ declare namespace build { ajv?: AjvOptions /** * Optionally configure how the integer will be rounded - * + * * @default 'trunc' */ rounding?: 'ceil' | 'floor' | 'round' | 'trunc' /** - * @deprecated + * @deprecated * Enable debug mode. Please use `mode: "debug"` instead */ debugMode?: boolean @@ -190,7 +190,7 @@ declare namespace build { } export const validLargeArrayMechanisms: string[] - export function restore (value: (doc: TDoc) => string): ReturnType + export function restore (value: (doc: TDoc) => string): ReturnType export const build: Build export { build as default } diff --git a/types/index.test-d.ts b/types/index.test-d.ts index 44aff137..e314d804 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -159,7 +159,7 @@ build({ })(new Date()) /* -This overload doesn't work yet - +This overload doesn't work yet - TypeScript chooses the generic for the schema before it chooses the overload for the options parameter.