Files
shields/services/deprecation-helpers.js
2021-07-09 12:53:55 +01:00

10 lines
197 B
JavaScript

import { Deprecated } from './index.js'
function enforceDeprecation(effectiveDate) {
if (Date.now() >= effectiveDate.getTime()) {
throw new Deprecated()
}
}
export { enforceDeprecation }