{"version":3,"file":"ngrx-signals-testing.mjs","sources":["../../../../modules/signals/testing/src/unprotected.ts","../../../../modules/signals/testing/ngrx-signals-testing.ts"],"sourcesContent":["import {\n  isWritableStateSource,\n  Prettify,\n  StateSource,\n  WritableStateSource,\n} from '@ngrx/signals';\n\ntype UnprotectedSource<Source extends StateSource<object>> =\n  Source extends StateSource<infer State>\n    ? Prettify<\n        Omit<Source, keyof StateSource<State>> & WritableStateSource<State>\n      >\n    : never;\n\nexport function unprotected<Source extends StateSource<object>>(\n  source: Source\n): UnprotectedSource<Source> {\n  if (isWritableStateSource(source)) {\n    return source as UnprotectedSource<Source>;\n  }\n\n  throw new Error('@ngrx/signals: The provided source is not writable.');\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAcM,SAAU,WAAW,CACzB,MAAc,EAAA;AAEd,IAAA,IAAI,qBAAqB,CAAC,MAAM,CAAC,EAAE;AACjC,QAAA,OAAO,MAAmC;;AAG5C,IAAA,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC;AACxE;;ACtBA;;AAEG;;;;"}