Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
item: V;
}
interface Baz {
buz: W;
}
interface Foo extends Bar<u>, Baz {
type: 'cool';
secondItem: T;
thirdItem: Bar>;
}
console.log(is, string>>({}));
console.log(is, string>>({ item: 'string', buz: 1, type: 'cool', secondItem: { item: 2 }, thirdItem: { item: { item: true } } }));
console.log(is(true));
console.log(is(false));
</u>
}
interface Baz {
buz: W;
}
interface Foo extends Bar<u>, Baz {
type: 'cool';
secondItem: T;
thirdItem: Bar>;
}
console.log(is, string>>({}));
console.log(is, string>>({ item: 'string', buz: 1, type: 'cool', secondItem: { item: 2 }, thirdItem: { item: { item: true } } }));
console.log(is(true));
console.log(is(false));
</u>
interface Bar /*extends Pick*/ {
item: V;
}
interface Baz {
buz: W;
}
interface Foo extends Bar<u>, Baz {
type: 'cool';
secondItem: T;
thirdItem: Bar>;
}
console.log(is, string>>({}));
console.log(is, string>>({ item: 'string', buz: 1, type: 'cool', secondItem: { item: 2 }, thirdItem: { item: { item: true } } }));
console.log(is(true));
console.log(is(false));
</u>