Skip to content

Commit

Permalink
fix: update to types to number or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbiePlata committed Sep 17, 2024
1 parent ab512e7 commit dc41ac2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions v1/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export type NumberOrNull = number | null;
export type NumberOrUndefined = number | undefined;
export type Shape = "circle" | "square";
export type Celsius = number | null;
export type Megahertz = number | null;
export type Celsius = NumberOrUndefined;
export type Megahertz = NumberOrUndefined;
/* Revolutions per minute */
export type Rpm = number | null;
export type Watts = number | null;
export type Rpm = NumberOrUndefined;
export type Watts = NumberOrUndefined;
/* 1024 * 1024 bytes */
export type Mebibytes = number | null;
export type Mebibytes = NumberOrUndefined;

declare global {
interface Window {
Expand Down Expand Up @@ -41,10 +41,10 @@ export interface Cpu {
socket: string;

/** Processor load (0..1) */
load: NumberOrNull;
load: NumberOrUndefined;

numCores: NumberOrNull;
numThreads: NumberOrNull;
numCores: NumberOrUndefined;
numThreads: NumberOrUndefined;

temperature: Celsius;
minTemperature: Celsius;
Expand All @@ -69,7 +69,7 @@ export interface Gpu {
name: string;

/** GPU load (0..1) */
load: NumberOrNull;
load: NumberOrUndefined;

temperature: Celsius;
minTemperature: Celsius;
Expand Down

0 comments on commit dc41ac2

Please sign in to comment.