Skip to content

Commit

Permalink
feat(common): add primitive value type (#57)
Browse files Browse the repository at this point in the history
Add PrimitiveValue, also include in ClassDependencies type
  • Loading branch information
omermorad authored Jun 9, 2023
1 parent 7e8155f commit 6e62fde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/semantic-pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Semantic Pull Request

permissions:
id-token: write
contents: read
checks: write

on:
pull_request_target:
types:
Expand All @@ -12,7 +17,7 @@ jobs:
name: Validate
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -31,7 +36,7 @@ jobs:
sinon
jest
types
nestjs
adapters(\.)?nestjs
core
doubles(\.)?.jest
*
Expand Down
4 changes: 3 additions & 1 deletion packages/common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Type } from '@automock/types';

export type ClassDependencies = Map<Type | string, Type>;
export type PrimitiveValue = string | number | boolean | symbol | null;

export type ClassDependencies = Map<Type | string, Type | PrimitiveValue>;

export interface DependenciesReflector {
reflectDependencies(targetClass: Type): ClassDependencies;
Expand Down

0 comments on commit 6e62fde

Please sign in to comment.