Skip to content

Commit 2ac6158

Browse files
committed
Add type modifier across the codebase
1 parent 981099a commit 2ac6158

File tree

878 files changed

+3281
-2825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

878 files changed

+3281
-2825
lines changed

src/common/and-call.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { FnLike } from '@seedcompany/common';
1+
import { type FnLike } from '@seedcompany/common';
22
import { isPromise } from 'node:util/types';
3-
import { ConditionalKeys } from 'type-fest';
3+
import { type ConditionalKeys } from 'type-fest';
44

55
export const andCall = <
66
T,

src/common/augmented-metadata.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ArgumentMetadata, PipeTransform } from '@nestjs/common';
1+
import { type ArgumentMetadata, type PipeTransform } from '@nestjs/common';
22
import { ServerException } from './exceptions';
33

44
const key = Symbol('AugmentedMetadata');

src/common/context.type.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { OperationDefinitionNode } from 'graphql';
2-
import { BehaviorSubject } from 'rxjs';
1+
import { type OperationDefinitionNode } from 'graphql';
2+
import { type BehaviorSubject } from 'rxjs';
33
import type { IRequest, IResponse } from '~/core/http';
4-
import { Session } from './session';
4+
import { type Session } from './session';
55

66
/**
77
* The type for graphql @Context() decorator

src/common/create-and-inject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ModuleRef } from '@nestjs/core';
1+
import { type ModuleRef } from '@nestjs/core';
22
import { pickBy } from 'lodash';
3-
import { Class } from 'type-fest';
3+
import { type Class } from 'type-fest';
44

55
/**
66
* A helper to create an instance of a class and inject dependencies.

src/common/data-object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AbstractClassType } from './types';
1+
import { type AbstractClassType } from './types';
22

33
/**
44
* A helper class to try to enforce proper usage of data objects.

src/common/db-label.helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { uniq } from 'lodash';
2-
import { AbstractClass } from 'type-fest';
2+
import type { AbstractClass } from 'type-fest';
33
import { DbLabelSymbol } from './db-label.decorator';
44
import { getParentTypes } from './parent-types';
55
import { isResourceClass } from './resource.dto';

src/common/discovery-unique-methods.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DiscoveredMethodWithMeta } from '@golevelup/nestjs-discovery';
1+
import { type DiscoveredMethodWithMeta } from '@golevelup/nestjs-discovery';
22

33
export const uniqueDiscoveredMethods = <T>(
44
methods: Array<DiscoveredMethodWithMeta<T>>,

src/common/email-field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { applyDecorators } from '@nestjs/common';
2-
import { Field, FieldOptions } from '@nestjs/graphql';
2+
import { Field, type FieldOptions } from '@nestjs/graphql';
33
import { Transform } from './transform.decorator';
44
import { IsEmail } from './validators';
55

src/common/exceptions/date-override-conflict.exception.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { isNotFalsy, type NonEmptyArray } from '@seedcompany/common';
22
import type { ID } from '../id-field';
3-
import { CalendarDate } from '../temporal';
3+
import { type CalendarDate } from '../temporal';
44
import type { Range } from '../types';
55
import { RangeException } from './range.exception';
66

src/common/exceptions/duplicate.exception.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ArgumentsHost } from '@nestjs/common';
1+
import { type ArgumentsHost } from '@nestjs/common';
22
import { lowerCase, upperFirst } from 'lodash';
33
import type { ExclusivityViolationError } from '~/core/gel';
44
import { InputException } from './input.exception';

0 commit comments

Comments
 (0)