File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11import { GuardIs } from './guard-is.interface' ;
2- export interface Guard {
2+ export interface Guard extends GuardIs {
33 is : GuardIs ;
44}
Original file line number Diff line number Diff line change 1+ // Import: Type.
12import { GuardArray } from '../type/guard-array.type' ;
23import { GuardBigInt } from '../type/guard-big-int.type' ;
34import { GuardBoolean } from '../type/guard-boolean.type' ;
@@ -16,7 +17,7 @@ import { GuardInstance } from '../type/guard-instance.type';
1617import { GuardNull } from '../type/guard-null.type' ;
1718import { GuardSymbol } from '../type/guard-symbol.type' ;
1819import { GuardUndefined } from '../type/guard-undefined.type' ;
19-
20+ // Export: Interface.
2021export interface GuardIs {
2122 array : GuardArray ;
2223 bigint : GuardBigInt ;
@@ -30,7 +31,7 @@ export interface GuardIs {
3031 number : GuardNumber ;
3132 object : GuardObject ;
3233 objectKey : GuardObjectKey ;
33- objectKeys : GuardObjectKeys ,
34+ objectKeys : GuardObjectKeys ;
3435 primitive : GuardPrimitive ;
3536 string : GuardString ;
3637 symbol : GuardSymbol ;
Original file line number Diff line number Diff line change 1- // Object.
1+ // Import: Object.
22import { guardIs } from './guard-is.object' ;
3- // Interface.
3+ // Import: Interface.
44import { Guard } from '../interface/guard-interface' ;
5- // `guard`
6- export const guard : Guard = {
7- is : guardIs
8- } ;
5+ // Export: `guard`
6+ export const guard : Guard = { ...guardIs , is : guardIs } ;
You can’t perform that action at this time.
0 commit comments