-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add sayable & post payloads, workaround for #180 * add sayable schemas etc. * add tap mixin * init post interface * fix all unit tests (typing imports) * 1.13.1 * export sayable payloads * 1.13.2 * move type in post payload, add post event * clean * 1.13.3 * fix names & exports * 1.13.4 * rename create -> publish * clean * 1.13.5
- Loading branch information
Showing
33 changed files
with
895 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env -S node --no-warnings --loader ts-node/esm | ||
|
||
import { | ||
test, | ||
} from 'tstest' | ||
|
||
import type { | ||
PostMixin, | ||
ProtectedPropertyPostMixin, | ||
} from './post-mixin.js' | ||
|
||
test('ProtectedPropertyPostMixin', async t => { | ||
type NotExistInMixin = Exclude<ProtectedPropertyPostMixin, keyof InstanceType<PostMixin>> | ||
type NotExistTest = NotExistInMixin extends never ? true : false | ||
|
||
const noOneLeft: NotExistTest = true | ||
t.ok(noOneLeft, 'should match Mixin properties for every protected property') | ||
}) |
Oops, something went wrong.