Brand<BrandStr>: {
    [brandSymbol]: BrandStr;
}

Type Parameters

  • BrandStr extends string

    String type to brand this object with

Type declaration

Returns

A branded empty object type

Example

Brand<'example'> => {[brandSymbol]: 'example'}

Which I might use like this:
type MyType = {content: string} & Brand<'example'>