mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
fix(#108): remove absolute path in emitted d.ts
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user