Skip to content

Commit 4bbc6d3

Browse files
authored
Merge pull request #224 from knockout/typescript-foundation
TypeScript Foundation: Type Definitions and Config (Chunk 1/8 from PR #213)
2 parents 0411267 + 79f676e commit 4bbc6d3

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

global.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare global {
2727
const Matchers: Matchers
2828
const Spec: any
2929
const FakeTimer: any
30-
const undefined: undefined
30+
const undefined: undefined // Legacy Jasmine 1.x sentinel value
3131

3232
let browserSupportsProtoAssignment: any
3333
let ieVersion: any
@@ -41,19 +41,21 @@ declare global {
4141
toHaveCheckedStates(expectedValues: any): boolean
4242
toThrowContaining(expected: any): boolean
4343
toEqualOneOf(expectedPossibilities: any): boolean
44-
toContainHtml(expectedHtml: any, postProcessCleanedHtml: any): boolean
44+
toContainHtml(expectedHtml: any, postProcessCleanedHtml?: any): boolean
4545
toHaveSelectedValues(expectedValues: any): boolean
46-
toContainHtml(expectedValues: any): boolean
4746
toHaveNodeTypes(expectedTypes: any): boolean
4847
toContainHtmlElementsAndText(expectedHtml: any): boolean
4948
}
5049

5150
interface Clock {
5251
mockScheduler: any
52+
reset(): void
53+
useMock(): void
5354
}
5455

5556
interface Spy {
5657
reset(): any
58+
andCallFake(fn: Function): Spy
5759
}
5860
}
5961

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"type": "MIT",
1414
"url": "http://www.opensource.org/licenses/mit-license.php"
1515
}
16-
],
16+
],
1717
"devDependencies": {
1818
"@eslint/js": "^9.20.0",
1919
"@types/jasmine": "^1.3.7",

0 commit comments

Comments
 (0)