Skip to content

Commit

Permalink
Fix more flow issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pyamada-atlassian committed Aug 1, 2024
1 parent 40e64df commit 6c21293
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/core/rust/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,9 @@ declare export class Resolver {
resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
getInvalidations(path: string): JsInvalidations;
}
declare export class ResolverOld {
constructor(projectRoot: string, options: ResolverOptions): Resolver;
resolve(options: ResolveOptions): ResolveResult;
resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
getInvalidations(path: string): JsInvalidations;
}
3 changes: 2 additions & 1 deletion packages/utils/node-resolver-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const ResolverBase: typeof ResolverNew = getFeatureFlag(
'ownedResolverStructures',
)
? ResolverNew
: ResolverOld;
: // $FlowFixMe unfortunately this can't be typed properly. This may be an issue if something does instanceof checks against a direct reference to @parcel/rust, but will be fine otherwise.
ResolverOld;

export {default} from './Wrapper';
export {init} from '@parcel/rust';

0 comments on commit 6c21293

Please sign in to comment.