You people have a prettierrc yet never run prettier tabs or spaces. WHICH IS IT 2 width or 4 width WHICH IS IT (i'd make index.html 4 width tab but there's more that uses space there)
9 lines
320 B
TypeScript
9 lines
320 B
TypeScript
// TODO: `Object` has a toString(), but we should probably gate that off
|
|
/// Interface for things that can be turned into strings
|
|
export interface ToStringable {
|
|
toString(): string;
|
|
}
|
|
|
|
/// A type for strings, or things that can (in a valid manner) be turned into strings
|
|
export type StringLike = string | ToStringable;
|