Common types, interfaces and abstracts
npm i @qiwi/substrate -D
yarn i @qiwi/substrate --dev
import { IStringMap } from '@qiwi/substrate'
const foo: IStringMap = {
bar: 'baz',
qux: 'quux'
}
Upper-camel-case with prefixes I
, T
and A
.
IFoo
— Foo interfaceTBar
— Bar typeABaz
— Baz abstract
Type changes without backward compatibility should be complemented by a version suffix Vx
, where x ∈ ℕ
.
IFooV1
— The first version of Foo interfaceTBarV2
— Bar type version 2