Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor({
rootURI,
includes,
excludes,
configURI
}: {
rootURI: URI;
includes: string[];
excludes: string[];
configURI?: URI;
}) {
invariant(rootURI, `Must provide "rootURI".`);
invariant(includes, `Must provide "includes".`);
invariant(excludes, `Must provide "excludes".`);
this.rootURI = rootURI;
this.includes = includes;
this.excludes = excludes;
}
constructor({
rootURI,
includes,
excludes,
configURI
}: {
rootURI: URI;
includes: string[];
excludes: string[];
configURI?: URI;
}) {
invariant(rootURI, `Must provide "rootURI".`);
invariant(includes, `Must provide "includes".`);
invariant(excludes, `Must provide "excludes".`);
this.rootURI = rootURI;
this.includes = includes;
this.excludes = excludes;
}
constructor({
rootURI,
includes,
excludes,
configURI
}: {
rootURI: URI;
includes: string[];
excludes: string[];
configURI?: URI;
}) {
invariant(rootURI, `Must provide "rootURI".`);
invariant(includes, `Must provide "includes".`);
invariant(excludes, `Must provide "excludes".`);
this.rootURI = rootURI;
this.includes = includes;
this.excludes = excludes;
}