Closed selenehyun closed 2 years ago
This change gives you an advantage when developing with date-io.
If you extend the type as shown below in a project using date-io, you can set the Opaque type so that the Date value is not directly referenced.
declare module '@date-io/core' { type Opaque<K, T> = T & { __TYPE__: K }; interface ExtendableDateType extends Opaque<'DateType', unknown> {} }
This allows me to take advantage of TypeScript more powerfully by not dealing with the any type.
any
This change gives you an advantage when developing with date-io.
If you extend the type as shown below in a project using date-io, you can set the Opaque type so that the Date value is not directly referenced.
This allows me to take advantage of TypeScript more powerfully by not dealing with the
any
type.