Skip to content

Commit

Permalink
chore: remove all skipLibCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiangmoe committed Dec 5, 2023
1 parent 752dcbc commit 7b024e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 0 additions & 2 deletions packages/rspack-cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"extends": "../../tsconfig.base.json",
"include": ["src"],
"compilerOptions": {
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"outDir": "dist",
"rootDir": "src"
},
Expand Down
19 changes: 10 additions & 9 deletions packages/rspack-dev-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ export class RspackDevServer extends WebpackDevServer {
/**
* resolved after `normalizedOptions`
*/
// @ts-expect-error
options: ResolvedDevServer;
// @ts-expect-error
staticWatchers: FSWatcher[];
// @ts-expect-error
sockets: Socket[];
// @ts-expect-error
server: Server;
// @ts-expect-error
declare options: ResolvedDevServer;

declare staticWatchers: FSWatcher[];

declare sockets: Socket[];

declare server: Server;
// TODO: remove @ts-ignore here
/** @ts-ignore */
public compiler: Compiler | MultiCompiler;
webSocketServer: WebpackDevServer.WebSocketServerImplementation | undefined;

Expand Down Expand Up @@ -79,6 +79,7 @@ export class RspackDevServer extends WebpackDevServer {
},
compiler as any
);
this.staticWatchers;
}

getClientTransport(): string {
Expand Down
2 changes: 0 additions & 2 deletions packages/rspack-dev-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"src"
],
"compilerOptions": {
// TODO: Remove skipLibCheck when fix upstream type bug
"skipLibCheck": true,
"outDir": "dist",
"rootDir": "src"
}
Expand Down

0 comments on commit 7b024e5

Please sign in to comment.