id
stringlengths
6
6
text
stringlengths
20
17.2k
title
stringclasses
1 value
014102
Angular Router ========= Managing state transitions is one of the hardest parts of building applications. This is especially true on the web, where you also need to ensure that the state is reflected in the URL. In addition, we often want to split applications into multiple bundles and load them on demand. Doing this ...
014103
Implements the Angular Router service , which enables navigation from one view to the next as users perform application tasks. Defines the `Route` object that maps a URL path to a component, and the `RouterOutlet` directive that you use to place a routed view in a template, as well as a complete API for configuring, q...
014121
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Injectable, NgModule} from '@angular/core'; import {ComponentFixture, fakeAsync, TestBed, tick} f...
014122
describe('loadComponent', () => { it('does not load component when canActivate returns false', fakeAsync(() => { const loadComponentSpy = jasmine.createSpy(); @Injectable({providedIn: 'root'}) class Guard { canActivate() { return false; } } TestBed.configureT...
014132
describe('data', async () => { it('should set static data', async () => { const s = await recognize([{path: 'a', data: {one: 1}, component: ComponentA}], 'a'); const r: ActivatedRouteSnapshot = s.root.firstChild!; expect(r.data).toEqual({one: 1}); }); it("should inherit componentless rout...
014140
it('with overlapping loads from navigation and the preloader', fakeAsync(() => { const preloader = TestBed.inject(RouterPreloader); const router = TestBed.inject(Router); router.events.subscribe((e) => { if (e instanceof RouteConfigLoadEnd || e instanceof RouteConfigLoadStart) { even...
014176
ribe('guards', () => { describe('CanActivate', () => { describe('should not activate a route when CanActivate returns false', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{provide: 'alwaysFalse', useValue: (a: any, b: any) => false}], ...
014180
ribe('CanDeactivate', () => { let log: any; beforeEach(() => { log = []; TestBed.configureTestingModule({ providers: [ { provide: 'CanDeactivateParent', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) =...
014181
should not run CanActivate when CanDeactivate returns false', fakeAsync( inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ { path: 'main', component: Team...
014187
ribe('lazy loading', () => { it('works', fakeAsync( inject([Router, Location], (router: Router, location: Location) => { @Component({ selector: 'lazy', template: 'lazy-loaded-parent [<router-outlet></router-outlet>]', standalone: false, }) ...
014188
throws an error when forRoot() is used in a lazy context', fakeAsync( inject([Router, Location], (router: Router, location: Location) => { @Component({ selector: 'lazy', template: 'should not show', standalone: false, }) class LazyLoadedComponent...
014189
works when given a callback', fakeAsync( inject([Router, Location], (router: Router, location: Location) => { @Component({ selector: 'lazy', template: 'lazy-loaded', standalone: false, }) class LazyLoadedComponent {} @NgModule({ ...
014212
describe('component input binding', () => { it('sets component inputs from matching query params', async () => { @Component({ template: '', standalone: false, }) class MyComponent { @Input() language?: string; } TestBed.configureTestingModule({ providers: [ provide...
014245
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Compiler, createEnvironmentInjector, EnvironmentInjector, Injectable, OnDestroy, } from '@angular...
014251
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Compiler, EnvironmentInjector, inject, Injectable, InjectionToken, Injector, NgModuleFactory,...
014257
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { HashLocationStrategy, LOCATION_INITIALIZED, LocationStrategy, ViewportScroller, } from '@angular/co...
014259
* Provides the location strategy that uses the URL fragment instead of the history API. * * @usageNotes * * Basic example of how you can use the hash location option: * ``` * const appRoutes: Routes = []; * bootstrapApplication(AppComponent, * { * providers: [ * provideRouter(appRoutes, withHashLo...
014266
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {NavigationBehaviorOptions, Route} from './models'; import {ActivatedRouteSnapshot, RouterStateSnapshot} from...
014268
/** * Router events that allow you to track the lifecycle of the router. * * The events occur in the following sequence: * * * [NavigationStart](api/router/NavigationStart): Navigation starts. * * [RouteConfigLoadStart](api/router/RouteConfigLoadStart): Before * the router [lazy loads](guide/routing/common-route...
014271
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { EnvironmentInjector, EnvironmentProviders, NgModuleFactory, Provider, ProviderToken, Type, } fr...
014273
/** * A configuration object that defines a single route. * A set of routes are collected in a `Routes` array to define a `Router` configuration. * The router attempts to match segments of a given URL against each route, * using the configuration options defined in this object. * * Supports static, parameterized,...
014274
export interface Route { /** * Used to define a page title for the route. This can be a static string or an `Injectable` that * implements `Resolve`. * * @see {@link TitleStrategy} */ title?: string | Type<Resolve<string>> | ResolveFn<string>; /** * The path to match against. Cannot be used tog...
014275
/** * @description * * Interface that a class can implement to be a guard deciding if a route can be activated. * If all guards return `true`, navigation continues. If any guard returns `false`, * navigation is cancelled. If any guard returns a `UrlTree`, the current navigation * is cancelled and a new navigation...
014280
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, ViewportScroller, } from ...
014296
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {EnvironmentInjector, ProviderToken, runInInjectionContext} from '@angular/core'; import { concat, defer,...
014304
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Observable} from 'rxjs'; import {filter, map, take} from 'rxjs/operators'; import { Event, NavigationCa...
014322
# Saved Responses for Angular's Issue Tracker This doc collects canned responses that the Angular team can use to close issues that fall into the listed resolution categories. Since GitHub currently doesn't allow us to have a repository-wide or organization-wide list of [saved replies](https://help.github.com/article...
014325
## Releasing APIs before they're fully stable The Angular team may occasionally seek to release a feature or API without immediately including this API in Angular's normal support and deprecation category. You can use one of two labels on such APIs: Developer Preview and Experimental. APIs tagged this way are not subj...
014327
# Angular Branching and Versioning: A Practical Guide This guide explains how the Angular team manages branches and how those branches relate to merging PRs and publishing releases. Before reading, you should understand [Semantic Versioning](https://semver.org/#semantic-versioning-200). ## Distribution tags on npm A...
014328
# Building and Testing Angular This document describes how to set up your development environment to build and test Angular. It also explains the basic mechanics of using `git`, `node`, and `yarn`. * [Prerequisite Software](#prerequisite-software) * [Getting the Sources](#getting-the-sources) * [Installing NPM Module...
014339
import { AfterViewInit } from '@angular/core'; import { ChangeDetectorRef } from '@angular/core'; import { ElementRef } from '@angular/core'; import { EventEmitter } from '@angular/core'; import * as i0 from '@angular/core'; import { InjectionToken } from '@angular/core'; import { Injector } from '@angular/core'; impor...
014359
## API Report File for "@angular/core_rxjs-interop" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts import { DestroyRef } from '@angular/core'; import { Injector } from '@angular/core'; import { MonoTypeOperatorFunction } from 'rxjs'; import { Observable } from...
014382
d: string, url: string, options: { body?: any; headers?: HttpHeaders | { [header: string]: string | string[]; }; context?: HttpContext; reportProgress?: boolean; observe: 'events'; params?: HttpParams | { [param: string]: string | number | ...
014399
## API Report File for "@angular/platform-browser_animations" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts import { ANIMATION_MODULE_TYPE } from '@angular/core'; import * as i0 from '@angular/core'; import * as i1 from '@angular/platform-browser'; import { M...
014452
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {NgModule} from '@angular/core'; import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; imp...
014464
<!DOCTYPE html> <html> <head> <title>Order Management</title> <style> .warning { background-color: yellow; } </style> </head> <body> <order-management-app> Loading... </order-management-app> <script src="/angular/packages/zone.js/bundles/zone.umd.js"></script> <script...
014472
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {...
014478
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Injectable, NgModule} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {B...
014494
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {HttpClientModule} from '@angular/common/http'; import {NgModule} from '@angular/core'; import {BrowserModule...
014509
<!DOCTYPE html> <html> <title>Routing Example</title> <link rel="stylesheet" type="text/css" href="./css/gumby.css" /> <link rel="stylesheet" type="text/css" href="./css/app.css" /> <base href="/" /> <body> <inbox-app> Loading... </inbox-app> </body> <script src="/angular/packages/zone.js/bundles/zo...
014650
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {mergeApplicationConfig, ApplicationConfig} from '@angular/core'; import {provideServerRendering} from '@angul...
014651
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Component} from '@angular/core'; import {testData} from '../../test-data'; @Component({ selector: 'app-roo...
014716
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Input} from '@angular/core'; import {DomSanitizer, SafeStyle} from '@angular/platform-browser'; ...
014720
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {Component, Input} from '@angular/core'; import {DomSanitizer, SafeStyle} from '@angular/platform-browser'; ...
014795
<!DOCTYPE html> <html> <head> <!-- Prevent the browser from requesting any favicon. --> <link rel="icon" href="data:," /> </head> <body> <div> <app-component>Loading...</app-component> </div> <script src="/angular/packages/zone.js/bundles/zone.umd.js"></script> <script src="/bundle...
020857
/// <reference path='fourslash.ts' /> // @noImplicitAny: true // @Filename: /a.ts ////import fs = require("fs"); ////fs; verify.codeFixAvailable([{ description: "Install '@types/node'", commands: [{ type: "install package", file: "/a.ts", packageName: "@types/node", }], }]);
023343
// @target: es2017 export async function get(): Promise<[]> { let emails = []; return emails; }
024555
export interface ReactSelectProps<TValue = OptionValues> extends React.Props<ReactSelectClass<TValue>> { /** * text to display when `allowCreate` is true. * @default 'Add "{label}"?' */ addLabelText?: string; /** * renders a custom drop-down arrow to be shown in the right-hand side of th...
025027
declare let cond: any; // OK: One or other operand is possibly nullish const test1 = (cond ? undefined : 32) ?? "possibly reached"; // Not OK: Both operands nullish const test2 = (cond ? undefined : null) ?? "always reached"; // Not OK: Both operands non-nullish const test3 = (cond ? 132 : 17) ?? "unreachable"; // ...
026824
// @noImplicitAny: true let additional = []; for (const subcomponent of [1, 2, 3]) { additional = [...additional, subcomponent]; }
027688
// @strict: true export interface Predicate<A> { (a: A): boolean } interface Left<E> { readonly _tag: 'Left' readonly left: E } interface Right<A> { readonly _tag: 'Right' readonly right: A } type Either<E, A> = Left<E> | Right<A>; interface Refinement<A, B extends A> { (a: A): a is B } ...
033103
// @strict: true declare const o1: undefined | { b: string }; o1?.b; declare const o2: undefined | { b: { c: string } }; o2?.b.c; declare const o3: { b: undefined | { c: string } }; o3.b?.c; declare const o4: { b?: { c: { d?: { e: string } } } }; o4.b?.c.d?.e; declare const o5: { b?(): { c: { d?: { e: string } } }...
036169
Promise.resolve().then(v => null); >Promise.resolve().then(v => null) : Promise<any> > : ^^^^^^^^^^^^ >Promise.resolve().then : <TResult1 = void, TResult2 = never>(onfulfilled?: (value: void) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResu...
039347
privateNameJsPrototype.js(3,3): error TS18016: Private identifiers are not allowed outside class bodies. privateNameJsPrototype.js(4,3): error TS18016: Private identifiers are not allowed outside class bodies. privateNameJsPrototype.js(5,7): error TS18016: Private identifiers are not allowed outside class bodies. priva...
042644
void; } export interface ArrowRendererProps { /** * Arrow mouse down event handler. */ onMouseDown: React.MouseEventHandler<any>; /** * whether the Select is open or not. */ isOpen: boolean; } export interface ValueComponentProps<TValue = OptionValues> { disabled: ReactSelectP...
043350
parser509534.ts(2,14): error TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. parser509534.ts(3,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. ==== parser509534....
044691
privateNameInObjectLiteral-3.ts(2,9): error TS18016: Private identifiers are not allowed outside class bodies. privateNameInObjectLiteral-3.ts(2,9): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. ==== privateNameInObjectLiteral-3.ts (2 errors) ==== const obj = { ...
045456
//// [tests/cases/conformance/expressions/optionalChaining/propertyAccessChain/propertyAccessChain.ts] //// //// [propertyAccessChain.ts] declare const o1: undefined | { b: string }; o1?.b; declare const o2: undefined | { b: { c: string } }; o2?.b.c; declare const o3: { b: undefined | { c: string } }; o3.b?.c; decl...
046569
a.ts(1,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig. ==== tsconfig.json (0 errors) ==== { "compilerOptions": {"types": []} } ==== a.ts (1 errors) ==== module.export...
046657
/a.js(2,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. /f.cts(1,1): error TS1286: ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled. /main1.ts(1,13): error TS2305: Module '"./a"' has no exported membe...
050156
bug24934.js(2,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. ==== bug24934.js (1 errors) ==== export function abc(a, b, c) { return 5; } module.exports = { abc }; ~~~~~~ !!! error TS2580: Cannot find name 'module'. Do you ...
050174
/a.ts(1,22): error TS7016: Could not find a declaration file for module '@foo/bar'. '/node_modules/@foo/bar/index.js' implicitly has an 'any' type. Try `npm i --save-dev @types/foo__bar` if it exists or add a new declaration (.d.ts) file containing `declare module '@foo/bar';` ==== /a.ts (1 errors) ==== import ...
050181
didYouMeanSuggestionErrors.ts(1,1): error TS2582: Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. didYouMeanSuggestionErrors.ts(2,5): error TS2582: Cannot find name 'it'. Do you need to install type definition...
054459
.map((arr) => arr.list) >map : <U>(callbackfn: (value: { list?: MyObj[]; }, index: number, array: { list?: MyObj[]; }[]) => U, thisArg?: any) => U[] > : ^ ^^ ^^^ ^^^^^^^^^^^ ^^^^^ ^^ ^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^ ^^^^^^^^ >(arr) => arr.list : (arr: { list?: MyObj[]; }...
057064
o2?.f(x); >o2?.f(x) : boolean > : ^^^^^^^ >o2?.f : (x: any) => x is number > : ^ ^^ ^^^^^ >o2 : { f(x: any): x is number; } > : ^^^^ ^^ ^^^ ^^^ >f : (x: any) => x is number > : ^ ^^ ^^^^^ >x : number > : ^^^^^^ } else { x; >x : string | number > : ^^^^^^^^^^^^...
058540
privateNamesNotAllowedInVariableDeclarations.ts(1,7): error TS18029: Private identifiers are not allowed in variable declarations. ==== privateNamesNotAllowedInVariableDeclarations.ts (1 errors) ==== const #foo = 3; ~~~~ !!! error TS18029: Private identifiers are not allowed in variable declarations.
059221
><U>(u: U, update: (u: U) => T) => { const set = (newU: U) => Object.is(u, newU) ? t : update(newU); return Object.assign( <K extends Key<U>>(key: K) => reduce<Value<K, U>>(u[key as keyof U] as Value<K, U>, (v: Value<K, U>) => { return update(Object.assign(Arra...
061198
//// [tests/cases/compiler/mappedTypeWithAsClauseAndLateBoundProperty2.ts] //// //// [mappedTypeWithAsClauseAndLateBoundProperty2.ts] export const thing = (null! as { [K in keyof number[] as Exclude<K, "length">]: (number[])[K] }) satisfies any; //// [mappedTypeWithAsClauseAndLateBoundProperty2.js] export const thin...
063797
/** * Performs the specified action for each element in an array. * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. * @param thisArg An object to which the this keyword can refer in the callbackfn functio...
073389
privateNameES5Ban.ts(3,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. privateNameES5Ban.ts(4,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. privateNameES5Ban.ts(5,12): error TS18028: Private identifiers are only ...
073655
//// [tests/cases/compiler/indexedAccessAndNullableNarrowing.ts] //// === indexedAccessAndNullableNarrowing.ts === function f1<T extends Record<string, any>, K extends keyof T>(x: T[K] | undefined) { >f1 : <T extends Record<string, any>, K extends keyof T>(x: T[K] | undefined) => void > : ^ ^^^^^^^^^ ...
074467
a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. main.ts(1,20): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referen...
076015
eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkRlc3RydWN0dXJpbmdGb3JBcnJheUJpbmRpbmdQYXR0ZXJuRGVmYXVsdFZhbHVlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNvdXJjZU1hcFZhbGlkYXRpb25EZXN0cnVjdHVyaW5nRm9yQXJyYXlCaW5kaW5nUGF0dGVybkRlZmF1bHRWYWx1ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTUEsSUFBSSxNQUFNLEdBQVUsQ0FB...
078277
static filter<R>(dit: typeof Promise, values: Promise.Thenable<R[]>, filterer: (item: R, index: number, arrayLength: number) => Promise.Thenable<boolean>): Promise<R[]>; >filter : { <R_1>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R_1>[]>, filterer: (item: R_1, index: number, arrayLength: number) =>...
078278
static filter<R>(dit: typeof Promise, values: Promise.Thenable<R>[], filterer: (item: R, index: number, arrayLength: number) => Promise.Thenable<boolean>): Promise<R[]>; >filter : { <R_1>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R_1>[]>, filterer: (item: R_1, index: number, arrayLength: number) =>...
079199
function f15a(o: Thing | undefined, value: unknown) { if (o?.foo === value) { o.foo; // Error } else { o.foo; // Error } if (o?.foo !== value) { o.foo; // Error } else { o.foo; // Error } if (o?.foo == value) { o.foo; // Error } el...
079250
privateFieldAssignabilityFromUnknown.ts(2,3): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher. privateFieldAssignabilityFromUnknown.ts(5,7): error TS2741: Property '#field' is missing in type '{}' but required in type 'Class'. ==== privateFieldAssignabilityFromUnknown.t...
079599
return Promise.resolve<TObj[K]>(obj[key]); >Promise.resolve<TObj[K]>(obj[key]) : Promise<Awaited<TObj[K]>> > : ^^^^^^^^^^^^^^^^^^^^^^^^^ >Promise.resolve : { (): Promise<void>; <T>(value: T): Promise<Awaited<T>>; <T>(value: T | PromiseLike<T>): Promise<Awaited<T>>; } > :...
080348
metadataImportType.ts(2,6): error TS2582: Cannot find name 'test'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`. metadataImportType.ts(3,15): error TS2307: Cannot find module './b' or its corresponding type declarations. ==== metadata...
080414
a.ts(1,1): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. ==== tsconfig.json (0 errors) ==== { "compilerOptions": {} } ==== a.ts (1 errors) ==== module.exports = 1; ~~~~~~ !!! error TS2580: Cannot find name 'module'. Do y...
082607
fixSignatureCaching.ts(9,10): error TS2339: Property 'mobileDetectRules' does not exist on type '{}'. fixSignatureCaching.ts(284,10): error TS2339: Property 'detectMobileBrowsers' does not exist on type '{}'. fixSignatureCaching.ts(293,10): error TS2339: Property 'FALLBACK_PHONE' does not exist on type '{}'. fixSignatu...
083876
var flat = _.reduceRight(list, (a, b) => a.concat(b), []); >flat : number[] > : ^^^^^^^^ >_.reduceRight(list, (a, b) => a.concat(b), []) : number[] > : ^^^^^^^^ >_.reduceRight : { <T>(list: T[], iterator: Reducer<T, T>, initialValue?: T, context?: any): T; <T, U>(list: ...
083878
_.any([null, 0, 'yes', false]); >_.any([null, 0, 'yes', false]) : boolean > : ^^^^^^^ >_.any : { <T>(list: T[], iterator?: Iterator_<T, boolean>, context?: any): boolean; <T>(list: Dictionary<T>, iterator?: Iterator_<T, boolean>, context?: any): boolean; } > : ^^^ ^^ ^^ ^^ ...
084236
a.ts(1,14): error TS2868: Cannot find name 'Bun'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig. ==== tsconfig.json (0 errors) ==== { "compilerOptions": {"types": []} } ==== a.ts (1 errors) ==== const file = Bun.f...
086417
parser509693.ts(1,6): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. parser509693.ts(1,22): error TS2580: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. ==== parser509693.t...
097481
// ==ORIGINAL== type APIResponse<T> = { success: true, data: T } | { success: false }; function wrapResponse<T>(response: T): APIResponse<T> { return { success: true, data: response }; } function /*[#|*/get/*|]*/() { return Promise.resolve(undefined!).then<APIResponse<{ email: string }>>(d => { conso...
097499
// ==ORIGINAL== function /*[#|*/f/*|]*/(): Promise<void>{ const result = getResult(); return fetch('https://typescriptlang.org').then(({ result }) => { console.log(result) }); } // ==ASYNC FUNCTION::Convert to async function== async function f(): Promise<void>{ const result = getResult(); const { resu...
097517
// ==ORIGINAL== type APIResponse<T> = { success: true, data: T } | { success: false }; function wrapResponse<T>(response: T): APIResponse<T> { return { success: true, data: response }; } function /*[#|*/get/*|]*/() { return Promise.resolve(undefined!).then<APIResponse<{ email: string }>>(d => wrapResponse(d)...
097527
// ==ORIGINAL== type APIResponse<T> = { success: true, data: T } | { success: false }; function /*[#|*/get/*|]*/() { return Promise .resolve<APIResponse<{ email: string }>>({ success: true, data: { email: "" } }) .catch<APIResponse<{ email: string }>>(() => ({ success: false })); } // ==ASYNC FUN...
097583
// ==ORIGINAL== function /*[#|*/f/*|]*/(): Promise<void>{ const result = getResult(); return fetch('https://typescriptlang.org').then(([result]) => { console.log(result) }); } // ==ASYNC FUNCTION::Convert to async function== async function f(): Promise<void>{ const result = getResult(); const [result_...
097613
// ==ORIGINAL== type APIResponse<T> = { success: true, data: T } | { success: false }; function wrapResponse<T>(response: T): APIResponse<T> { return { success: true, data: response }; } function /*[#|*/get/*|]*/() { return Promise.resolve(undefined!).then<APIResponse<{ email: string }>>(wrapResponse); } //...
098413
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false Input:: //// [/home/src/tslibs/TS/Lib/lib.d.ts] /// <reference no-default-lib="true"/> interface Boolean {} interface Function {} interface CallableFunction {} interface NewableFunction {} interface IArguments {} interface Number { toExpo...
109488
WatchInfo: /user/username/projects/myproject/package.json 2000 undefined File location affecting resolution FileWatcher:: Close:: WatchInfo: /user/username/projects/package.json 2000 undefined File location affecting resolution FileWatcher:: Close:: WatchInfo: /user/username/projects/myproject/node_modules/@types/node/...
109489
m - error TS2580: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`. 1 process.on("uncaughtException");   ~~~~~~~ [HH:MM:SS AM] Found 1 error. Watching for file changes. PolledWatches:: /user/usernam...
109726
currentDirectory:: /user/username/workspace/solution/projects/projectc useCaseSensitiveFileNames:: false Input:: //// [/user/username/workspace/solution/projects/project/app.ts] let x = 1 //// [/user/username/workspace/solution/projects/project/tsconfig.json] { "compilerOptions": { "types": [ "node" ],...
112074
### TypeScript #### Typing Avoid `any` where possible. If you find yourself using `any`, consider whether a generic may be appropriate in your case. For methods and properties that are part of a component's public API, all types must be explicitly specified because our documentation tooling cannot currently infer typ...
112228
emTitle>; toggle(): void; _toggleOnInteraction(): void; togglePosition: MatListOptionTogglePosition; // (undocumented) _unscopedContent: ElementRef<HTMLSpanElement>; get value(): any; set value(newValue: any); // (undocumented) static ɵcmp: i0.ɵɵComponentDeclaration<MatListOption, "m...
112393
"@ampproject/remapping@2.3.0", "@ampproject/remapping@^2.2.0": version "2.3.0" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== de...
112495
"@ampproject/remapping@2.3.0", "@ampproject/remapping@^2.2.0": version "2.3.0" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== de...
112615
"@ampproject/remapping@2.3.0", "@ampproject/remapping@^2.2.0": version "2.3.0" resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== de...