Replies: 1 comment
-
Types with a fixed index signature like an interface A {
a?: string;
b: string;
c: number;
}
interface B extends Omit<A, 'a'> {}
function fn({ a, ...rest }: A): B {
return rest
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I work with Records in fp-ts. Want to assign other records, remove keys etc, buy always has an error, that I cant have optional properties in Record
Example
This code throw type error
Beta Was this translation helpful? Give feedback.
All reactions