This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
generated from JoshuaKGoldberg/create-typescript-app
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: align naming on functions (#37)
- Align the naming of functions - Only use the methods needed in example
- Loading branch information
Showing
8 changed files
with
24 additions
and
16 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { | ||
createTsonAsync, | ||
TsonAsyncOptions, | ||
tsonAsyncIterator, | ||
tsonBigint, | ||
tsonPromise, | ||
} from "tupleson"; | ||
|
||
export const tsonAsync = createTsonAsync({ | ||
export const tsonOptions: TsonAsyncOptions = { | ||
types: [tsonPromise, tsonAsyncIterator, tsonBigint], | ||
}); | ||
}; |
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,8 +1,8 @@ | ||
import { TsonAsyncOptions } from "./asyncTypes.js"; | ||
import { createTsonParseAsync } from "./deserializeAsync.js"; | ||
import { createAsyncTsonStringify } from "./serializeAsync.js"; | ||
import { createTsonStringifyAsync } from "./serializeAsync.js"; | ||
|
||
export const createTsonAsync = (opts: TsonAsyncOptions) => ({ | ||
parse: createTsonParseAsync(opts), | ||
stringify: createAsyncTsonStringify(opts), | ||
stringify: createTsonStringifyAsync(opts), | ||
}); |
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