@dvrd/dvr-controls 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvrd/dvr-controls",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Custom web controls",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -136,8 +136,8 @@ export const shuffleArray = (arr: any[]): any[] => {
136
136
  return arr;
137
137
  };
138
138
 
139
- export function nullify<T extends string | Array<any> | Set<any> | number>(value?: T | null): T | null {
140
- if (typeof value === 'number') {
139
+ export function nullify<T extends string | Array<any> | Set<any> | number | bigint>(value?: T | null): T | null {
140
+ if (typeof value === 'number' || typeof value === 'bigint') {
141
141
  if (value > 0) return value;
142
142
  return null;
143
143
  }