@wireapp/commons
Version:
Collection of common components that are used across Wire web applications.
24 lines • 929 B
TypeScript
import { RecursivePartial, OptionalKeys, RequiredKeys, XOR } from './TypeUtil';
interface UserSettings {
one: {
four: number;
three: number;
};
}
type SomePartial = Partial<UserSettings>;
declare const invalidPartial: SomePartial['one'];
type AllPartial = RecursivePartial<UserSettings>;
declare const allPartial: AllPartial['one'];
interface MessageSettings {
content: string;
expired?: boolean;
recipient: string;
sent?: boolean;
}
declare const optionalKeys: OptionalKeys<MessageSettings>[];
declare const requiredKeys: RequiredKeys<MessageSettings>[];
declare const invalidKeys: OptionalKeys<MessageSettings>[];
declare const xorKeys: XOR<MessageSettings, UserSettings>;
declare const invalidXorKeys: XOR<MessageSettings, UserSettings>;
export { allPartial, invalidPartial, optionalKeys, requiredKeys, invalidKeys, xorKeys, invalidXorKeys };
//# sourceMappingURL=TypeUtil.mock.d.ts.map