fix(core): Update types for TypeScript nullability support (#15472)

This commit is contained in:
Miško Hevery
2017-03-29 09:34:45 -07:00
committed by Victor Berchet
parent 331b9f6425
commit 910c0d9ee7
84 changed files with 1287 additions and 1260 deletions

View File

@ -11,9 +11,9 @@ import {stringify} from '../src/util';
export function main() {
describe('stringify', () => {
it('should return string undefined when toString returns undefined',
() => expect(stringify({toString: (): string => undefined})).toBe('undefined'));
() => expect(stringify({toString: (): any => undefined})).toBe('undefined'));
it('should return string null when toString returns null',
() => expect(stringify({toString: (): string => null})).toBe('null'));
() => expect(stringify({toString: (): any => null})).toBe('null'));
});
}