Microsoft/TypeScript
`Date.getVarDate()` function seems incorrectly defined
オープン
#51,636 opened on 2022/11/24
BugDomain: lib.d.tsHelp Wanted
Repository metrics
- Stars
- (108,860 個のスター)
- PR merge metrics
- (PR metrics pending)
説明
interface Date {
getVarDate: () => VarDate;
}
TypeScript has defined Date type to has a functional property getVarDate, but such function does not exist in the real Date instance. Looking at some API documents, the Date.getVarDate() is a non-standard method forActiveX. Therefore, I hope TypeScript to remove the functional property or change it like below:
interface Date {
// no reason to be property assigned functional value
getVarDate?(): VarDate;
}