Skip to content

Commit

Permalink
declare toString in Value
Browse files Browse the repository at this point in the history
  • Loading branch information
macjuul committed Oct 11, 2024
1 parent 75e522c commit 1598b31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/data/value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ export abstract class Value {
* Convert this value to a serializable string
*/
abstract toJSON(): unknown;

/**
* Convert this value to a string representation
*/
abstract toString(): string;
}

0 comments on commit 1598b31

Please sign in to comment.