diff --git a/app/client/declarations.d.ts b/app/client/declarations.d.ts index 7b9c9cdf..0fa0fe36 100644 --- a/app/client/declarations.d.ts +++ b/app/client/declarations.d.ts @@ -335,3 +335,7 @@ interface Location { // historical accident than an intentional choice. reload(forceGet?: boolean): void; } + +interface JQuery { + datepicker(options: unknown): JQuery; +} diff --git a/app/client/widgets/DateEditor.js b/app/client/widgets/DateEditor.js deleted file mode 100644 index d11f4cef..00000000 --- a/app/client/widgets/DateEditor.js +++ /dev/null @@ -1,172 +0,0 @@ -/* global $, document */ -const moment = require('moment-timezone'); -const _ = require('underscore'); -const gutil = require('app/common/gutil'); -const commands = require('../components/commands'); -const dispose = require('../lib/dispose'); -const dom = require('../lib/dom'); -const kd = require('../lib/koDom'); -const TextEditor = require('./TextEditor'); -const { parseDate, TWO_DIGIT_YEAR_THRESHOLD } = require('app/common/parseDate'); - -// DatePicker unfortunately requires an (not