Skip to content

Commit

Permalink
this should be null, not undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdrackett committed Jun 24, 2021
1 parent a7bc72b commit 72196c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/typings.test.ts
Expand Up @@ -666,7 +666,7 @@ describe('typings.test.js', function () {
const myDb: RxDatabase = {} as any;
const typedLocalDoc = await myDb.getLocal<{foo: string;}>('foobar');
const typedLocalDocInsert = await myDb.insertLocal<{foo: string;}>('foobar', { bar: 'foo' });
const x: undefined = typedLocalDoc.foo;
const x: null = typedLocalDoc.foo;
const x2: string = typedLocalDocInsert.foo;
});
`;
Expand Down

0 comments on commit 72196c3

Please sign in to comment.