Skip to main content Link Menu Expand (external link) Document Search Copy Copied

MessageModule type

The type of the generated ES module, once executed


export type MessageModule<Shape, ReturnType extends 'string' | 'values' = 'string'> = Shape extends string ? MessageFunction<ReturnType> : {
    [P in keyof Shape]: MessageModule<Shape[P], ReturnType>;

References: MessageFunction, MessageModule


Use with Shape extending the StringStructure that was used as the module source.