Skip to content

Commit

Permalink
style: remove trailing whitespace (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 3, 2024
1 parent a0d0049 commit c776eb8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
```
${{ needs.benchmark.outputs.MASTER-BENCH }}
```
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<a name="debug"></a>
### Debug Mode
Expand All @@ -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"}'
Expand Down
8 changes: 4 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ declare namespace build {
*/
$ref: string;
}

export interface AnySchema extends BaseSchema {
}

Expand Down Expand Up @@ -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
Expand All @@ -190,7 +190,7 @@ declare namespace build {
}

export const validLargeArrayMechanisms: string[]
export function restore (value: <TDoc extends object = object>(doc: TDoc) => string): ReturnType<Build>
export function restore (value: <TDoc extends object = object>(doc: TDoc) => string): ReturnType<Build>

export const build: Build
export { build as default }
Expand Down
2 changes: 1 addition & 1 deletion types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c776eb8

Please sign in to comment.