js

@js/types (0.2.1)

Published 2023-08-26 22:00:38 +00:00 by drone in js/types

Installation

@js:registry=
npm install @js/types@0.2.1
"@js/types": "0.2.1"

About this package

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';

Dependencies

Development Dependencies

ID Version
typescript ^5.1.3
Details
npm
2023-08-26 22:00:38 +00:00
53
James Brumond
ISC
latest
2.1 KiB
Assets (1)
types-0.2.1.tgz 2.1 KiB
Versions (3) View all
0.2.1 2023-08-26
0.2.0 2023-08-26
0.1.0 2023-08-21