SYMBOL INDEX (176 symbols across 71 files) FILE: advanced-typescript/150 native node support/src/index.ts function log (line 1) | function log(message: string) { type LoginMode (line 7) | type LoginMode = 'app' | 'email' | 'social'; FILE: demo/src/feature.ts function initializationWithSideEffects (line 3) | function initializationWithSideEffects() { FILE: typescript/02 instance/src/index.ts class Queue (line 8) | class Queue { method push (line 10) | push(item: T) { this.data.push(item); } method pop (line 11) | pop(): T | undefined { return this.data.shift(); } FILE: typescript/05 objects/src/index.ts type Point (line 1) | type Point = { x: number, y: number }; FILE: typescript/06 functions/src/index.ts type Add (line 1) | type Add = (a: number, b: number) => number; FILE: typescript/07 structural/src/index.ts type Point2D (line 1) | type Point2D = { x: number, y: number }; type Point3D (line 2) | type Point3D = { x: number, y: number, z: number }; function takesPoint2D (line 9) | function takesPoint2D(point: Point2D) { /** ... */ } function takesPoint3D (line 14) | function takesPoint3D(point: Point3D) { /** ... */ } FILE: typescript/08 classes/src/index.ts class Animal (line 1) | class Animal { method constructor (line 4) | constructor(name: string) { method move (line 8) | public move(distanceInMeters: number): void { class Bird (line 17) | class Bird extends Animal { method fly (line 18) | fly(distanceInMeters: number) { FILE: typescript/09 target/src/index.ts class Animal (line 1) | class Animal { method constructor (line 3) | constructor(name: string) { method move (line 6) | move(distanceInMeters: number) { FILE: typescript/10 generics/src/index.ts class Queue (line 2) | class Queue { method push (line 4) | push(item: T) { this.data.push(item); } method pop (line 5) | pop(): T { return this.data.shift(); } FILE: typescript/11 any and unknown/src/examples.ts function loadString (line 1) | function loadString(): any { function loadNumber (line 5) | function loadNumber(): any { FILE: typescript/11 any and unknown/src/index.ts function log (line 1) | function log(value: unknown) { FILE: typescript/12 migration/src/examples.ts function loadString (line 1) | function loadString(): any { function loadNumber (line 5) | function loadNumber(): any { FILE: typescript/12 migration/src/index.ts function log (line 1) | function log(value: unknown) { FILE: typescript/13 universal utilities/src/examples.ts function loadString (line 1) | function loadString(): any { function loadNumber (line 5) | function loadNumber(): any { FILE: typescript/13 universal utilities/src/index.ts function log (line 1) | function log(value: unknown) { FILE: typescript/15 assertion/src/example.ts function load (line 1) | function load(): unknown { FILE: typescript/16 casting/src/example.ts function load (line 1) | function load(): unknown { FILE: typescript/17 modules/src/utils.ts function isPalindrome (line 4) | function isPalindrome(str: string): boolean { FILE: typescript/22 const/src/index.ts type Point (line 1) | type Point = { x: number, y: number }; FILE: typescript/23 this/src/index.ts class Person (line 1) | class Person { method constructor (line 3) | constructor(_age: number) { method age (line 9) | age() { FILE: typescript/24 readonly/src/index.ts class Animal (line 1) | class Animal { method constructor (line 3) | constructor(name: string) { FILE: typescript/25 union/src/index.ts type Padding (line 1) | type Padding = function padLeft (line 10) | function padLeft(value: string, padding: Padding) { FILE: typescript/26 literal/src/index.ts type DiceValue (line 1) | type DiceValue = 1 | 2 | 3 | 4 | 5 | 6; function rollDice (line 3) | function rollDice() { FILE: typescript/27 narrowing/src/index.ts type Square (line 1) | type Square = { type Rectangle (line 5) | type Rectangle = { type Shape (line 10) | type Shape = Square | Rectangle; function area (line 12) | function area(shape: Shape) { FILE: typescript/28 discriminating/src/index.ts type ValidationSuccess (line 1) | type ValidationSuccess = { type ValidationFailure (line 6) | type ValidationFailure = { type ValidationResult (line 11) | type ValidationResult = function logResult (line 15) | function logResult(result: ValidationResult) { FILE: typescript/29 parameter properties/src/index.ts class Person (line 1) | class Person { method constructor (line 2) | constructor( FILE: typescript/30 strict/false/false.ts type User (line 1) | type User = { function getUserAge (line 11) | function getUserAge(name: string): number { FILE: typescript/30 strict/src/index.ts class Person (line 1) | class Person { method constructor (line 2) | constructor( FILE: typescript/30 strict/true/true.ts type User (line 1) | type User = { function getUserAge (line 11) | function getUserAge(name: string): number { FILE: typescript/32 intersection/src/index.ts type Person (line 1) | type Person = { type Email (line 5) | type Email = { type Phone (line 9) | type Phone = { type ContactDetails (line 13) | type ContactDetails = function contact (line 18) | function contact(details: ContactDetails) { FILE: typescript/33 optional/src/index.ts class Point (line 1) | class Point { FILE: typescript/35 interface/src/interface.ts type Point2D (line 1) | interface Point2D { type Point3D (line 6) | interface Point3D extends Point2D { FILE: typescript/35 interface/src/type.ts type Point2D (line 1) | type Point2D = { type Point3D (line 6) | type Point3D = Point2D & { FILE: typescript/36 declaration merging/src/index.ts type Request (line 2) | interface Request { type Request (line 7) | interface Request { function handleRequest (line 12) | function handleRequest(req: Request) { FILE: typescript/37 types vs interfaces/src/interfaces.ts type InputProps (line 1) | interface InputProps { FILE: typescript/37 types vs interfaces/src/types.ts type InputOnChange (line 1) | type InputOnChange = (newValue: InputValue) => void; type InputValue (line 3) | type InputValue = string; type InputType (line 5) | type InputType = 'text' | 'email'; type InputProps (line 7) | type InputProps = { FILE: typescript/38 never/src/index.ts type Square (line 1) | type Square = { type Rectangle (line 6) | type Rectangle = { type Circle (line 12) | type Circle = { type Shape (line 17) | type Shape = function area (line 22) | function area(s: Shape) { FILE: typescript/39 implements/src/index.ts type Animal (line 1) | type Animal = { function log (line 6) | function log(animal: Animal) { class Cat (line 10) | class Cat implements Animal { method constructor (line 11) | constructor(public name: string) { } method voice (line 12) | voice() { return 'meow'; } class Dog (line 15) | class Dog implements Animal { method constructor (line 16) | constructor(public name: string) { } method voice (line 17) | voice() { return 'woof'; } FILE: typescript/40 definite/src/index.ts class Point (line 1) | class Point { method constructor (line 4) | constructor() { method moveRandom (line 7) | moveRandom() { FILE: typescript/41 type guard/src/index.ts type Square (line 1) | type Square = { type Rectangle (line 4) | type Rectangle = { type Shape (line 8) | type Shape = Square | Rectangle; function isSquare (line 10) | function isSquare(shape: Shape): shape is Square { function isRectangle (line 14) | function isRectangle(shape: Shape): shape is Rectangle { function area (line 18) | function area(shape: Shape) { FILE: typescript/42 assert/src/example.ts function loadPerson (line 1) | function loadPerson(): Person | null { FILE: typescript/42 assert/src/index.ts type Person (line 1) | type Person = { function assert (line 6) | function assert(condition: unknown, message: string): asserts condition { function assertDate (line 10) | function assertDate(value: unknown): asserts value is Date { FILE: typescript/43 overloads/src/example.ts function loadPerson (line 1) | function loadPerson(): Person | null { FILE: typescript/43 overloads/src/index.ts function makeDate (line 3) | function makeDate(timestampOrYear: number, month?: number, day?: number)... FILE: typescript/44 call signature/src/example.ts function loadPerson (line 1) | function loadPerson(): Person | null { FILE: typescript/46 index/src/example.ts type Person (line 2) | type Person = { type PersonDictionary (line 7) | type PersonDictionary = { FILE: typescript/46 index/src/index.ts type Person (line 1) | type Person = { type PersonDictionary (line 6) | type PersonDictionary = { FILE: typescript/47 readonly array/src/example.ts type Person (line 2) | type Person = { type PersonDictionary (line 7) | type PersonDictionary = { FILE: typescript/48 double assertion/src/example.ts type Person (line 2) | type Person = { type PersonDictionary (line 7) | type PersonDictionary = { FILE: typescript/48 double assertion/src/index.ts type Point2D (line 1) | type Point2D = { x: number, y: number }; type Point3D (line 2) | type Point3D = { x: number, y: number, z: number }; type Person (line 3) | type Person = { name: string, email: string }; FILE: typescript/49 this/src/example.ts type Person (line 2) | type Person = { type PersonDictionary (line 7) | type PersonDictionary = { FILE: typescript/49 this/src/index.ts function double (line 1) | function double(this: { value: number }) { FILE: typescript/50 generic constraint/src/index.ts type NameFields (line 1) | type NameFields = { firstName: string, lastName: string }; function addFullName (line 3) | function addFullName(obj: T): T & { fullName: stri... FILE: typescript/51 typeof/src/index.ts type PersonResponse (line 8) | type PersonResponse = typeof personResponse; function processResponse (line 10) | function processResponse(person: PersonResponse) { FILE: typescript/52 lookup/src/index.ts type SubmitRequest (line 1) | type SubmitRequest = { type PaymentRequest (line 54) | type PaymentRequest = SubmitRequest['payment']; type PreviousAliasRequest (line 55) | type PreviousAliasRequest = SubmitRequest['personal']['previousAliases']... function getPayment (line 57) | function getPayment(): PaymentRequest { FILE: typescript/53 keyof/src/index.ts type Person (line 1) | type Person = { function logGet (line 13) | function logGet(obj: Obj, key: Key) { FILE: typescript/54 conditional/src/index.ts type TypeName (line 1) | type TypeName = function typeName (line 11) | function typeName(t: T): TypeName { FILE: typescript/55 infer/src/index.ts function createPerson (line 1) | function createPerson(firstName: string, lastName: string) { function logPerson (line 8) | function logPerson(person: ReturnType) { FILE: typescript/56 mapped/src/index.ts type Point (line 1) | type Point = { FILE: typescript/57 mapped type modifiers/src/index.ts class State (line 1) | class State { method constructor (line 2) | constructor(public current: T) { } method update (line 3) | update(next: Partial) { FILE: typescript/58 as const/src/index.ts function layout (line 1) | function layout(settings: { FILE: typescript/59 override/src/another.ts class Disposible (line 1) | class Disposible { method dispose (line 3) | dispose() { method log (line 7) | log(message: string) { class File (line 12) | class File extends Disposible { method write (line 13) | write(contents: string) { FILE: typescript/59 override/src/index.ts class Visibility (line 1) | class Visibility { method setVisible (line 3) | setVisible(visible: boolean) { class MockVisibility (line 7) | class MockVisibility extends Visibility { method setVisible (line 8) | override setVisible(visible: boolean) { FILE: typescript/60 pick/src/index.ts type CSSProperties (line 2) | type CSSProperties = { function setSize (line 10) | function setSize( FILE: typescript/63 satisfies/src/index.ts type Color (line 1) | type Color = ColorString | ColorRGB; type ColorString (line 2) | type ColorString = 'red' | 'blue' | 'yellow' | 'purple'; type ColorRGB (line 3) | type ColorRGB = [red: number, green: number, blue: number]; type Theme (line 5) | type Theme = Record; FILE: typescript/65 thisType/src/index.ts type StateDescription (line 1) | type StateDescription = { function createState (line 6) | function createState(desc: StateDescription): D & M { method moveBy (line 13) | moveBy(dx: number, dy: number) { FILE: typescript/66 Awaited/src/index.ts function example (line 1) | async function example(input: T) { FILE: typescript/67 intrinsic string/src/index.ts type Getter (line 1) | type Getter = `get${Capitalize}`; type Setter (line 2) | type Setter = `set${Capitalize}`; type Name (line 4) | type Name = 'name'; type GetName (line 6) | type GetName = Getter; type SetName (line 7) | type SetName = Setter; FILE: typescript/68 mapped type as clause/src/index.ts type Getter (line 1) | type Getter = `get${Capitalize}`; type Setter (line 2) | type Setter = `set${Capitalize}`; type Name (line 4) | type Name = 'name'; type GetName (line 6) | type GetName = Getter; type SetName (line 7) | type SetName = Setter; FILE: typescript/69 union vs intersection venn diagrams/src/index.ts type Name (line 1) | type Name = { name: string }; type Age (line 2) | type Age = { age: number }; type Union (line 4) | type Union = Name | Age | (Name & Age); function filter (line 11) | function filter(union: Union) { FILE: typescript/70 enums are bad/src/index.ts type LoginMode (line 7) | type LoginMode = keyof typeof LoginMode; function initiateLogin (line 9) | function initiateLogin(mode: LoginMode) {