raw.js(7,7): error TS2322: Type '{ rawJSON: string; }' is not assignable to type 'RawJSON'.
  Property '#isRawJson' is missing in type '{ rawJSON: string; }' but required in type 'RawJSONInstance'.
raw.js(9,7): error TS2322: Type '{ rawJSON: string; }' is not assignable to type 'RawJSON'.
  Property '#isRawJson' is missing in type '{ rawJSON: string; }' but required in type 'RawJSONInstance'.
raw.js(10,3): error TS2540: Cannot assign to 'rawJSON' because it is a read-only property.
raw.js(17,1): error TS2693: 'RawJSON' only refers to a type, but is being used as a value here.


==== raw.js (4 errors) ====
    /** @type {RawJSON} */
    const a = JSON.rawJSON("1");
    /** @type {string} */
    const b = a.rawJSON;
    
    /** @type {RawJSON} */
    const c = { rawJSON: "1" };
          ~
!!! error TS2322: Type '{ rawJSON: string; }' is not assignable to type 'RawJSON'.
!!! error TS2322:   Property '#isRawJson' is missing in type '{ rawJSON: string; }' but required in type 'RawJSONInstance'.
!!! related TS2728 lib.es2026.json.d.ts:--:--: '#isRawJson' is declared here.
    /** @type {RawJSON} */
    const d = { ...a };
          ~
!!! error TS2322: Type '{ rawJSON: string; }' is not assignable to type 'RawJSON'.
!!! error TS2322:   Property '#isRawJson' is missing in type '{ rawJSON: string; }' but required in type 'RawJSONInstance'.
!!! related TS2728 lib.es2026.json.d.ts:--:--: '#isRawJson' is declared here.
    a.rawJSON = "2";
      ~~~~~~~
!!! error TS2540: Cannot assign to 'rawJSON' because it is a read-only property.
    
    /** @param {unknown} x */
    function f(x) {
        return JSON.isRawJSON(x) ? x.rawJSON : undefined;
    }
    
    RawJSON;
    ~~~~~~~
!!! error TS2693: 'RawJSON' only refers to a type, but is being used as a value here.
    