Skip to content

Commit

Permalink
fix tsd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Dec 10, 2023
1 parent a31a7a4 commit 2f1fc7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/typescript/tsd/ServiceSettings.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const testSettingsSchema1: ServiceSchema<ExtendedSettings> = {
foo: 'bar',
},
};
expectType<ServiceSettingSchema>(testSettingsSchema1.settings!); // assert non-null to avoid undefined check
expectType<ExtendedSettings>(testSettingsSchema1.settings!); // assert non-null to avoid undefined check

// test that service gets default service settings schema
class TestService1 extends Service<ExtendedSettings> {
Expand All @@ -35,7 +35,7 @@ class TestService1 extends Service<ExtendedSettings> {
}
}
const testService1 = new TestService1(broker);
expectType<ServiceSettingSchema>(testService1.settings);
expectType<ExtendedSettings>(testService1.settings);
expectType<ServiceSchema<ExtendedSettings>>(testService1.schema);
expectType<ServiceSchema<ExtendedSettings>>(testService1.schema);

Expand Down

0 comments on commit 2f1fc7c

Please sign in to comment.