Lines Matching full:foo
17 class Foo {
18 foo: number = 0
27 function isFoo(arg: any): arg is Foo {
28 return arg.foo !== undefined
31 function doStuff(arg: Foo | Bar) {
33 console.log(arg.foo) // OK
36 console.log(arg.foo) // Compile-time error
41 doStuff({ foo: 123, common: '123' })
51 class Foo {
52 foo: number = 0
62 return arg instanceof Foo
67 let fooArg = arg as Foo
68 console.log(fooArg.foo) // OK
72 console.log(arg.foo) // Compile-time error
78 doStuff(new Foo())