Skip to content

Commit f736df4

Browse files
committed
examples/microservices/auth/src/controllers/auth-controller.ts and examples/microservices/items/src/controllers/itemController.ts
1 parent d06e774 commit f736df4

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

examples/microservices/auth/src/controllers/auth-controller.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { Request, Response } from 'express';
2-
import axios, { AxiosError } from 'axios';
2+
import axios from 'axios';
3+
4+
import type {AxiosError} from 'axios/index.d.ts';
5+
36
import { BadRequestError, CurrentUserRequest, EventTypes, Events } from '@chronosrx/common';
47
import { User } from '../models/user';
58
import { attachCookie } from '../util/attachCookie';

examples/microservices/auth/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/* Modules */
2828
"module": "commonjs", /* Specify what module code is generated. */
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
30-
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
30+
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3232
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3333
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -70,7 +70,7 @@
7070

7171
/* Interop Constraints */
7272
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
73-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
73+
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
7474
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
7575
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
7676
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */

examples/microservices/items/src/controllers/itemController.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { Response } from 'express';
2-
import axios, { AxiosError } from 'axios';
2+
import axios from 'axios';
3+
4+
import type {AxiosError} from 'axios/index.d.ts';
5+
36
import { BadRequestError, CurrentUserRequest, EventTypes } from '@chronosrx/common';
47
import { Item } from '../models/items';
58

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"style-loader": "^3.3.4",
8787
"ts-jest": "^29.1.2",
8888
"ts-node": "^10.9.1",
89-
"typescript": "^4.9.4",
89+
"typescript": "^4.9.5",
9090
"webpack": "^5.97.1",
9191
"webpack-cli": "^5.1.4",
9292
"webpack-dev-server": "^4.11.1"

0 commit comments

Comments
 (0)