File: stackDepthLimitCastingType.types

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (82 lines) | stat: -rw-r--r-- 2,658 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
=== tests/cases/compiler/node_modules/backbone/index.d.ts ===
declare global {
>global : typeof global

    interface JQueryXHR { }
    class Model<T = any, E = {}> {
>Model : Model<T, E>

        initialize(attributes?: T, options?: CombinedModelConstructorOptions<E, this>): void;
>initialize : (attributes?: T, options?: CombinedModelConstructorOptions<E, this>) => void
>attributes : T | undefined
>options : CombinedModelConstructorOptions<E, this> | undefined

        fetch(options?: any): JQueryXHR;
>fetch : (options?: any) => JQueryXHR
>options : any
    }
    interface ModelConstructorOptions<TModel extends Model = Model> {
        collection?: Collection<TModel>;
>collection : Collection<TModel> | undefined
    }
    class Collection<TModel extends Model = Model> {
>Collection : Collection<TModel>

        without(...values: TModel[]): TModel[];
>without : (...values: TModel[]) => TModel[]
>values : TModel[]
    }
    type CombinedModelConstructorOptions<E, M extends Model<any, E> = Model> = ModelConstructorOptions<M> & E;
>CombinedModelConstructorOptions : CombinedModelConstructorOptions<E, M>
}

export {
    Model
>Model : typeof Model

};
export as namespace Backbone;
>Backbone : typeof import("tests/cases/compiler/node_modules/backbone/index")

=== tests/cases/compiler/node_modules/backbone-fetch-cache/index.d.ts ===
import * as Backbone from "backbone";
>Backbone : typeof Backbone

declare module "backbone" {
>"backbone" : typeof Backbone

    interface ModelWithCache extends Model {
        fetch(options?: any): JQueryXHR;
>fetch : (options?: any) => JQueryXHR
>options : any
    }
}
export {};
export as namespace BackboneFetchCache;
>BackboneFetchCache : typeof import("tests/cases/compiler/node_modules/backbone-fetch-cache/index")

=== tests/cases/compiler/index.ts ===
import * as Backbone from "backbone";
>Backbone : typeof Backbone

import * as BackboneFetchCache from "backbone-fetch-cache";
>BackboneFetchCache : typeof BackboneFetchCache


const hoge = new Backbone.Model() as Backbone.ModelWithCache;
>hoge : Backbone.ModelWithCache
>new Backbone.Model() as Backbone.ModelWithCache : Backbone.ModelWithCache
>new Backbone.Model() : Backbone.Model<any, ModelConstructorOptions<Backbone.ModelWithCache>>
>Backbone.Model : typeof Backbone.Model
>Backbone : typeof Backbone
>Model : typeof Backbone.Model
>Backbone : any

hoge.fetch(null as any);
>hoge.fetch(null as any) : JQueryXHR
>hoge.fetch : (options?: any) => JQueryXHR
>hoge : Backbone.ModelWithCache
>fetch : (options?: any) => JQueryXHR
>null as any : any
>null : null