Skip to content

Commit

Permalink
docs: update typed documentation and API report
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Nov 14, 2024
1 parent cecd3b7 commit 115ad99
Show file tree
Hide file tree
Showing 10 changed files with 1,682 additions and 670 deletions.
10 changes: 10 additions & 0 deletions docs/api/controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,16 @@ interface GetFirmwareUpdatesOptions {
additionalUserAgentComponents?: Record<string, string>;
/** Whether the returned firmware upgrades should include prereleases from the `"beta"` channel. Default: `false`. */
includePrereleases?: boolean;
/**
* Can be used to specify the RF region if the Z-Wave controller
* does not support querying this information.
*
* **WARNING:** Specifying the wrong region may result in bricking the device!
*
* For this reason, the specified value is only used as a fallback
* if the RF region of the controller is not already known.
*/
rfRegion?: RFRegion;
}
```

Expand Down
4 changes: 1 addition & 3 deletions docs/api/driver.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,7 @@ interface FileSystem {
file: string,
data: string | Uint8Array,
options?:
| {
encoding: BufferEncoding;
}
| { encoding: BufferEncoding }
| BufferEncoding,
): Promise<void>;
readFile(file: string, encoding: BufferEncoding): Promise<string>;
Expand Down
918 changes: 512 additions & 406 deletions packages/cc/cc.api.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/config/config.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ export class DeviceConfig {
deviceId?: DeviceID;
}): Promise<DeviceConfig>;
getAssociationConfigForEndpoint(endpointIndex: number, group: number): AssociationConfig | undefined;
getHash(): Uint8Array;
getHash(algorithm?: "md5" | "sha-256"): Promise<Uint8Array>;
readonly isEmbedded: boolean;
// (undocumented)
readonly label: string;
Expand Down Expand Up @@ -617,7 +617,7 @@ export type ManufacturersMap = Map<number, string>;
// Warning: (ae-missing-release-tag) "PACKAGE_VERSION" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
export const PACKAGE_VERSION = "14.0.0";
export const PACKAGE_VERSION = "14.3.3";

// Warning: (ae-missing-release-tag) "ParamInfoMap" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
Expand Down
431 changes: 246 additions & 185 deletions packages/core/core.api.md

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions packages/host/host.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,6 @@ export function createTestingHost(options?: Partial<CreateTestingHostOptions>):
export interface CreateTestingHostOptions extends HostIDs, GetDeviceConfig {
}

// Warning: (ae-missing-release-tag) "FileSystem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export interface FileSystem {
// (undocumented)
ensureDir(path: string): Promise<void>;
// (undocumented)
pathExists(path: string): Promise<boolean>;
// (undocumented)
readFile(file: string, encoding: BufferEncoding): Promise<string>;
// (undocumented)
writeFile(file: string, data: string | Uint8Array, options?: {
encoding: BufferEncoding;
} | BufferEncoding): Promise<void>;
}

// Warning: (ae-missing-release-tag) "GetAllNodes" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
Expand Down
Loading

0 comments on commit 115ad99

Please sign in to comment.