mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
refactor: make loader.shouldLoadRelative public
This commit is contained in:
+1
-3
@@ -1,5 +1,3 @@
|
||||
import { LoaderOptions } from './loader'
|
||||
|
||||
export interface FS {
|
||||
/** check if a file exists asynchronously */
|
||||
exists: (filepath: string) => Promise<boolean>;
|
||||
@@ -10,7 +8,7 @@ export interface FS {
|
||||
/** read a file synchronously */
|
||||
readFileSync: (filepath: string) => string;
|
||||
/** resolve a file against directory, for given `ext` option */
|
||||
resolve: (dir: string, file: string, ext: string, options?: LoaderOptions) => string;
|
||||
resolve: (dir: string, file: string, ext: string) => string;
|
||||
/** defaults to "/", will be used for "within roots" check */
|
||||
sep?: string;
|
||||
/** dirname for a filepath, used when resolving relative path */
|
||||
|
||||
Reference in New Issue
Block a user