diff --git a/src/types.ts b/src/types.ts index 1a24849e32..be5185eb20 100644 --- a/src/types.ts +++ b/src/types.ts @@ -22,7 +22,7 @@ export { Hash } from './template/tag/hash' export { Value } from './template/value' // eslint-disable-next-line deprecation/deprecation export { _evalToken, evalToken, evalQuotedToken } from './render/expression' -export { toPromise, toThenable, toValueSync } from './util/async' +export { toPromise, toValueSync } from './util/async' export { defaultOperators, Operators } from './render/operator' export { createTrie, Trie } from './util/operator-trie' export { toValue } from './util/underscore' diff --git a/src/util/async.ts b/src/util/async.ts index 3dba5cb96c..9d836cd42b 100644 --- a/src/util/async.ts +++ b/src/util/async.ts @@ -44,5 +44,3 @@ export function toValueSync (val: Generator | T): T { } while (!done) return value } - -export const toThenable = toPromise