@scm-js/plugin-api 1.34.0 → 1.35.0

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.
Files changed (2) hide show
  1. package/index.d.ts +6 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2646,6 +2646,12 @@ export interface SectionsApi {
2646
2646
  move(from: number, to: number): RawEditResult;
2647
2647
  /** Replace the whole CHK, the way File ▸ Open reads one. */
2648
2648
  replaceFile(bytes: Uint8Array): RawEditResult;
2649
+ /**
2650
+ * The CHK inside a map file — an `.scx` / `.scm` archive's `staredit\scenario.chk`, or
2651
+ * the bytes themselves for a bare CHK — the way File ▸ Open reads it, for `replaceFile`.
2652
+ * Reads only; rejects with the reason for a file it cannot read.
2653
+ */
2654
+ chkOf(file: Uint8Array): Promise<Uint8Array>;
2649
2655
  /**
2650
2656
  * Bytes after the last chunk the reader could parse — what follows a chunk header with
2651
2657
  * a negative length, say. Save writes them back as they are; a `replaceFile` without
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scm-js/plugin-api",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "description": "Type declarations for the scmJS plugin API",
5
5
  "license": "MIT",
6
6
  "types": "index.d.ts",