fix(#108): remove absolute path in emitted d.ts

This commit is contained in:
harttle
2019-02-26 00:43:30 +08:00
parent 75b3e15ca9
commit 53a835ab54
103 changed files with 275 additions and 343 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import * as _ from './underscore'
import Token from 'src/parser/token'
import ITemplate from 'src/template/itemplate'
import Token from '../parser/token'
import ITemplate from '../template/itemplate'
abstract class LiquidError extends Error {
private token: Token
-7
View File
@@ -62,13 +62,6 @@ export function isArray (value: any): value is any[] {
return toStr.call(value) === '[object Array]'
}
export function isError (value: any): value is Error {
const signature = toStr.call(value)
// [object XXXError]
return signature.substr(-6, 5) === 'Error' ||
(typeof value.message === 'string' && typeof value.name === 'string')
}
/*
* Iterates over own enumerable string keyed properties of an object and invokes iteratee for each property.
* The iteratee is invoked with three arguments: (value, key, object).