@flect/core

4.1.0 • Public • Published

flect logo

Flect/core

Reifiable types for TypeScript

Introduction

Flect/core is a library for describing TypeScript types using JavaScript objects.

Usage

const Animal = record({
	legCount: numberType,
	sound: stringType
});
type Animal = Reify<typeof Animal>;
const dog: Animal = {legCount: 4, sound: "woof"};

Package Sidebar

Install

npm i @flect/core

Weekly Downloads

2

Version

4.1.0

License

MIT

Unpacked Size

190 kB

Total Files

16

Last publish

Collaborators

  • ddurschlag