2023-08-26 15:00:38 -07:00
2023-08-26 14:59:55 -07:00
2023-08-21 02:14:09 +00:00
2023-08-26 18:29:05 -07:00
2023-08-26 15:00:03 -07:00
2023-08-26 15:00:03 -07:00
2023-08-26 13:53:58 -07:00
2023-08-21 02:14:09 +00:00

Collection of general-purpose type definitions

# Update project npm config to refer to correct registry for the @js scope
echo '@js:registry=https://gitea.jbrumond.me/api/packages/js/npm/' >> ./.npmrc

npm install --save-dev @js/types

Types

import {
	// Various identifier strings
	HttpURL,
	HttpURLSchemeless,
	UUID,
	SnowflakeID,

	// HTTP verbs
	HttpVerb,
	HttpVerbExtended,

	// 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';
Description
Collection of general-purpose type definitions
Readme 47 KiB
Languages
YAML 100%