Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 199 Bytes

File metadata and controls

18 lines (14 loc) · 199 Bytes

Generics in the LSP

type A<B> = { 
    str: string
    b: B
}

String union in the Generics in the LSP

type A<B> = { 
    str: "one" | "two"
    b: B
}