MessageModule type

The type of the generated ES module, once executed

Signature:

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

Remarks

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