do to formatters
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* DisplayObject contract
|
||||
* Formatter contract
|
||||
*
|
||||
* Deterministic, reusable, UI-only formatting/mapping logic.
|
||||
*
|
||||
@@ -12,18 +12,11 @@
|
||||
* - No business rules
|
||||
*/
|
||||
|
||||
export interface DisplayObject {
|
||||
export interface Formatter {
|
||||
/**
|
||||
* Format or map the display object
|
||||
*
|
||||
* @returns Primitive values only (strings, numbers, booleans)
|
||||
*/
|
||||
format(): unknown;
|
||||
|
||||
/**
|
||||
* Optional: Get multiple display variants
|
||||
*
|
||||
* Allows a single DisplayObject to expose multiple presentation formats
|
||||
*/
|
||||
variants?(): Record<string, unknown>;
|
||||
}
|
||||
Reference in New Issue
Block a user