D
D
dark_king_132020-01-03 12:47:50
typescript
dark_king_13, 2020-01-03 12:47:50

How to inherit from interface CSSStyleDeclaration new and make all fields optional?

TS already has a CSSStyleDeclaration interface with a bunch of fields, all of which are required. Is there a way to make a duplicate of some short record in which all fields become optional. Or is the only option to just copy the entire code and replace the conditional border: string with border?: string

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GF, 2020-01-03
@dark_king_13


https ://www.typescriptlang.org/docs/handbook/utili...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question