const LineStyleBrand = Brand.nominal<LineStyleData>();
/**
* Create a LineStyleData from internal structure.
*
* NOTE: The cast `as LineStyleData<K>` is required because Brand.nominal
* cannot preserve generic type parameters. This is acceptable because:
* 1. The schema validates the structure at runtime
* 2. The generic K is a compile-time refinement only
* 3. The cast is at the brand boundary, not bypassing validation
*/
export function make<K extends LineStyleKeyword>(data: _LineStyleInternal<K>): LineStyleData<K> {
return LineStyleBrand(data) as LineStyleData<K>;
}
const LineStyleBrand = Brand.nominal<LineStyleData>();
/**
* Create a LineStyleData from internal structure.
*
* NOTE: The cast `as LineStyleData<K>` is required because Brand.nominal
* cannot preserve generic type parameters. This is acceptable because:
* 1. The schema validates the structure at runtime
* 2. The generic K is a compile-time refinement only
* 3. The cast is at the brand boundary, not bypassing validation
*/
export function make<K extends LineStyleKeyword>(data: _LineStyleInternal<K>): LineStyleData<K> {
return LineStyleBrand(data) as LineStyleData<K>;
}