All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.es.resolve.resolvers.file.index-browser.mjs Maven / Gradle / Ivy

Go to download

Advanced algorithms for semantic ApiDOM manipulations like dereferencing or resolution.

There is a newer version: 1.0.0-alpha.9
Show newest version
import Resolver from "../Resolver.mjs";
import ResolverError from "../../../errors/ResolverError.mjs";
class FileResolver extends Resolver {
  constructor() {
    super({
      name: 'file'
    });
  }

  // eslint-disable-next-line class-methods-use-this
  canRead() {
    return false;
  }

  // eslint-disable-next-line class-methods-use-this
  read() {
    throw new ResolverError('FileResolver is not intended to be used in browser context.');
  }
}
export default FileResolver;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy