Skip to content

Commit

Permalink
fix(cdk): fix types in dist and remove metadata emit
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored and MarsiBarsi committed Nov 23, 2020
1 parent 339df70 commit d92c0fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions projects/cdk/constants/matcher.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk/types';
import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types';
import {TUI_DEFAULT_STRINGIFY} from './stringify';

/**
Expand All @@ -10,7 +10,7 @@ import {TUI_DEFAULT_STRINGIFY} from './stringify';
export const TUI_DEFAULT_MATCHER = <T>(
item: T,
search: string,
stringify: TuiStringHandler<T> = TUI_DEFAULT_STRINGIFY,
stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,
) => stringify(item).toLowerCase().includes(search.toLowerCase());

/**
Expand All @@ -22,7 +22,7 @@ export const TUI_DEFAULT_MATCHER = <T>(
export const TUI_STRICT_MATCHER = <T>(
item: T,
search: string,
stringify: TuiStringHandler<T> = TUI_DEFAULT_STRINGIFY,
stringify: TuiHandler<T, string> = TUI_DEFAULT_STRINGIFY,
) => stringify(item).toLowerCase() === search.toLowerCase();

/**
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"declaration": false,
"module": "es2015",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"strict": true,
Expand Down

0 comments on commit d92c0fa

Please sign in to comment.