Skip to content

dougkulak/substrate

Repository files navigation

@dougkulak/substrate

Common types, interfaces and abstracts

Install

npm i @dougkulak/substrate -D
yarn i @dougkulak/substrate --dev

Usage

import { IStringMap } from '@dougkulak/substrate'

const foo: IStringMap = {
  bar: 'baz',
  qux: 'quux'
} 

Contract

Naming

Upper-camel-case with prefixes I, T and A.

  • IFoo — Foo interface
  • TBar — Bar type
  • ABaz — Baz abstract
Versioning

Type changes without backward compatibility should be complemented by a version suffix Vx, where x ∈ ℕ.

  • IFooV1 — The first version of Foo interface
  • TBarV2 — Bar type version 2

Docs

About

Common types, interfaces and abstracts

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published