// Ported from @shikijs/twoslash docs (rendererRich showcase): a Readonly<T>
// query, a read-only-assignment error, and a completion list in one snippet.
interface interface TodoTodo {
(property) Todo.title: stringtitle: string
}
const const todo: Readonly<Todo>todo: type Readonly<T> = { readonly [P in keyof T]: T[P]; }Make all properties in T readonly
Readonly<interface TodoTodo> = {
title: 'Delete inactive users'.(method) String.toUpperCase(): stringConverts all the alphabetic characters in a string to uppercase.
toUpperCase(),
}
const todo: Readonly<Todo>todo.(property) title: anytitle = 'Hello'
var Number: NumberConstructorAn object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers.
Number.(method) NumberConstructor.parseInt(string: string, radix?: number): numberConverts A string to an integer.
parseInt('123', 10)
- parseFloat
- parseInt
- prototype