Skip to content

qiwi/substrate

Folders and files

NameName
Last commit message
Last commit date
Dec 8, 2024
Dec 7, 2024
May 24, 2020
Mar 24, 2025
Feb 7, 2022
Dec 8, 2024
Feb 16, 2023
Nov 8, 2020
Jan 28, 2024
Dec 7, 2024
Jan 27, 2019
Dec 3, 2019
Sep 9, 2021
Dec 7, 2024
Nov 3, 2020
Feb 25, 2021
Mar 24, 2025

Repository files navigation

substrate

Common types, interfaces and abstracts

Install

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

Usage

import { IStringMap } from '@qiwi/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