React
Reference pages are ideal for outlining how things work in terse and clear terms. Less concerned with telling a story or addressing a specific use case, they should give a comprehensive outline of what you’re documenting.
Further reading
- Read about reference in the Diátaxis framework
const const hi: "Hello"
hi = 'Hello'const msg = `${const hi: "Hello"
hi}, world`const msg: "Hello, world"
var console: Console
console.Console.log(...data: any[]): void
log((1 + 2 + 3 + 4).to Number.toFixed(fractionDigits?: number): string
Returns a string representing a number in fixed-point notation.
Fixed(2))toExponentialtoFixedtoLocaleStringtoPrecisiontoString
/** A Basic Todo interface*/interface interface Todo
A Basic Todo interface
Todo { Todo.title: string
title: 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 Todo
A Basic Todo interface
Todo> = { title: 'Delete inactive users',title: string
}
const todo: Readonly<Todo>
todo.title = 'Hello'Error ts(2540) ―
npm install
console.log('Hello World!');
// my-test-file2.jsconsole.log('Hello World!');
console.log('Hello World!');