File: recursiveTypeComparison2.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (36 lines) | stat: -rw-r--r-- 1,623 bytes parent folder | download | duplicates (7)
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
tests/cases/compiler/recursiveTypeComparison2.ts(13,80): error TS2304: Cannot find name 'StateValue'.


==== tests/cases/compiler/recursiveTypeComparison2.ts (1 errors) ====
    // Before fix this would cause compiler to hang (#1170)
    
    declare module Bacon {
        interface Event<T> {
        }
        interface Error<T> extends Event<T> {
        }
        interface Observable<T> {
            zip<U, V>(other: EventStream<U>, f: (a: T, b: U) => V): EventStream<V>;
            slidingWindow(max: number, min?: number): Property<T[]>;
            log(): Observable<T>;
            combine<U, V>(other: Observable<U>, f: (a: T, b: U) => V): Property<V>;
            withStateMachine<U, V>(initState: U, f: (state: U, event: Event<T>) => StateValue<U, V>): EventStream<V>;
                                                                                   ~~~~~~~~~~
!!! error TS2304: Cannot find name 'StateValue'.
            decode(mapping: Object): Property<any>;
            awaiting<U>(other: Observable<U>): Property<boolean>;
            endOnError(f?: (value: T) => boolean): Observable<T>;
            withHandler(f: (event: Event<T>) => any): Observable<T>;
            name(name: string): Observable<T>;
            withDescription(...args: any[]): Observable<T>;
        }
        interface Property<T> extends Observable<T> {
        }
        interface EventStream<T> extends Observable<T> {
        }
        interface Bus<T> extends EventStream<T> {
        }
        var Bus: new <T>() => Bus<T>;
    }
    
    var stuck: Bacon.Bus<number> = new Bacon.Bus();