fix text constructor groupIds & improve type safety (#1715)

This commit is contained in:
David Luzar 2020-06-06 13:32:43 +02:00 committed by GitHub
parent 4eb6c3e8a4
commit d1be2a5481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 15 deletions

3
src/global.d.ts vendored
View file

@ -25,3 +25,6 @@ type ResolutionType<T extends (...args: any) => any> = T extends (
) => Promise<infer R>
? R
: any;
// https://github.com/krzkaczor/ts-essentials
type MarkOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;