Skip to content

True Myth / eslint-plugin/true-myth-support / Obligation

Class: Obligation ​

Constructors ​

Constructor ​

new Obligation(symbol, type): Obligation

Parameters ​

symbol ​

Symbol

type ​

MustUseType

Returns ​

Obligation

Properties ​

symbol ​

readonly symbol: Symbol


type ​

readonly type: MustUseType

Accessors ​

label ​

Get Signature ​

get label(): string

Returns ​

string

Methods ​

addEquivalentType() ​

addEquivalentType(type): void

Parameters ​

type ​

MustUseType

Returns ​

void


matches() ​

matches(type): boolean

Parameters ​

type ​

MustUseType

Returns ​

boolean