This commit is contained in:
James Brumond 2023-08-26 13:53:58 -07:00
parent 065a29f0cc
commit 2527241e25
Signed by: james
GPG Key ID: E8F2FC44BAA3357A
2 changed files with 22 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@js/types",
"version": "0.1.0",
"description": "Template project for creating new TypeScript type-definition-only packages",
"description": "Collection of generic TypeScript type definitions for various utility purposes",
"main": "src/index.d.ts",
"types": "src/index.d.ts",
"publishConfig": {
@ -9,7 +9,7 @@
},
"repository": {
"type": "git",
"url": "https://gitea.jbrumond.me/js/typescript-types.git"
"url": "https://gitea.jbrumond.me/js/types.git"
},
"author": "James Brumond <https://jbrumond.me>",
"license": "ISC",

View File

@ -14,6 +14,7 @@ npm install --save-dev @js/types
import {
// Various identifier strings
HttpURL,
HttpURLSchemeless,
UUID,
SnowflakeID,
@ -24,5 +25,24 @@ import {
// Pino-compatible logger interface
Logger,
LogFn,
// Function helpers
Func,
Params,
FirstParam,
NonFirstParams,
WithoutFirstParam,
// Language / locale
Locale,
// Date / time
ISODate,
ISOTime,
ISOZoneOffset,
ISOTimestamp,
TimeShort,
LocalDateTime,
Timezone,
} from '@js/types';
```