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