

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1234567891011121314# Strict TypeScript: DuckPlayer Native1516## Task1718Fix all strict-mode TypeScript errors in 7 duckplayer-native files and add them to `CORE_FILES`.1920## Branch2122```23git checkout main && git pull origin main && git checkout -b cursor/strict/duckplayer-native24```2526## Files (20 errors total)2728### `injected/src/features/duck-player-native.js` (4 errors)29```30(28,5): error TS2564: Property 'currentPage' has no initializer.31(30,5): error TS2564: Property 't' has no initializer.32(32,16): error TS7006: Parameter 'args' implicitly has an 'any' type.33(53,27): error TS2322: Type 'string | undefined' is not assignable to type 'string'.34```3536### `injected/src/features/duckplayer-native/custom-error/custom-error.js` (2 errors)37```38(26,5): error TS2564: Property 'logger' has no initializer.39(30,5): error TS2564: Property 'error' has no initializer.40```4142### `injected/src/features/duckplayer-native/messages.js` (3 errors)43```44(67,75): error TS2345: Argument of type '(mediaControlSettings: MediaControlSettings) => void' is not assignable to parameter of type '(value: unknown) => void'.45(75,72): error TS2345: Argument of type '(muteSettings: MuteSettings) => void' is not assignable to parameter of type '(value: unknown) => void'.46(83,72): error TS2345: Argument of type '(urlSettings: UrlChangeSettings) => void' is not assignable to parameter of type '(value: unknown) => void'.47```4849### `injected/src/features/duckplayer-native/overlays/thumbnail-overlay.js` (3 errors)50```51(16,5): error TS2564: Property 'logger' has no initializer.52(20,5): error TS2564: Property 'container' has no initializer.53(22,5): error TS2564: Property 'href' has no initializer.54```5556### `injected/src/features/duckplayer-native/sub-features/duck-player-native-no-cookie.js` (1 error)57```58(43,30): error TS7006: Parameter 'timestamp' implicitly has an 'any' type.59```6061### `injected/src/features/duckplayer-native/sub-features/duck-player-native-youtube.js` (1 error)62```63(56,30): error TS7006: Parameter 'timestamp' implicitly has an 'any' type.64```6566### `injected/src/features/duckplayer-native/youtube-errors.js` (6 errors)67```68(50,9): error TS2322: Type 'YouTubeError | undefined' is not assignable to type 'YouTubeError'.69(62,57): error TS2339: Property 'get' does not exist on type 'object'.70(80,17): error TS2322: Type 'YouTubeError | undefined' is not assignable to type 'YouTubeError'.71(85,13): error TS2322: Type 'YouTubeError | undefined' is not assignable to type 'YouTubeError'.72(93,13): error TS2322: Type 'YouTubeError | undefined' is not assignable to type 'YouTubeError'.73(101,5): error TS2322: Type 'YouTubeError | undefined' is not assignable to type 'YouTubeError'.74```7576## Fix Patterns7778- **TS2564** (No initializer): Use `/** @type {X} */ (prop!)` or initialize. For class properties assigned in `init()` rather than constructor, use definite assignment assertion.79- **TS7006** (Parameter implicitly any): Add `@param {Type}` JSDoc.80- **TS2345** (Subscribe callback): The messaging `subscribe` expects `(value: unknown) => void`. Cast or add type guard inside the callback.81- **TS2322** (YouTubeError | undefined → YouTubeError): Add undefined checks or use non-null assertion where the value is guaranteed.82- **TS2339** (Property 'get' on object): Cast to `Map` or the actual type that has `.get()`.8384## Workflow85861. `npm ci`872. Add all 7 files to CORE_FILES in `scripts/check-strict-core.js`883. Fix each file's errors894. `npm run tsc-strict-core` — must pass905. `npm run test-unit` — must pass916. `npm run lint` — must pass (run `npm run lint-fix` first if needed)927. Commit: `fix(types): add strict checking for duckplayer-native files`938. `git push -u origin cursor/strict/duckplayer-native`9495## Constraints9697- Do NOT use `any` — use `unknown`, specific types, or proper interfaces98- Do NOT use `@ts-ignore` or `@ts-expect-error`99- Do NOT modify files outside the assigned list (except `scripts/check-strict-core.js`)100- Do NOT remove existing CORE_FILES entries101- Preserve existing behavior — type fixes only, no logic changes102
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| duckduckgo/content-scope-scriptstypes-generator/AGENTS.md · 70 | AGENTS.md | testarchtypesdo-not | 73/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-broker-protection-actions.mdc · 70 | Cursor rules | buildteststyletypes+4 | 93/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-broker-protection-rest.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-click-to-load.mdc · 70 | Cursor rules | teststyletypesgit+2 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-detectors.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-duckplayer.mdc · 70 | Cursor rules | setupteststyletypes+4 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-fingerprinting.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-message-bridge.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-a.mdc · 70 | Cursor rules | teststyletypesgit+4 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-b.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-standalone-features-c.mdc · 70 | Cursor rules | teststyletypesgit+4 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-web-compat-and-telemetry.mdc · 70 | Cursor rules | teststyletypesgit+3 | 89/100 | 14 days ago | |
| duckduckgo/content-scope-scripts.cursor/rules/strict-zero-errors-batch.mdc · 70 | Cursor rules | testtypesgitdo-not+1 | 81/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsAGENTS.md · 70 | AGENTS.md | buildtestlint-formatstyle+5 | 83/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsinjected/AGENTS.md · 70 | AGENTS.md | buildteststylearch+2 | 92/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsmessaging/AGENTS.md · 70 | AGENTS.md | testarchtesting-strategyapi | 66/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 14 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 46 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 14 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 14 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 14 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 14 days ago | |
| bybren-llc/safe-agentic-workflow.cursor/rules/10-backend-python.mdc · 399 | Cursor rules | testlint-formatstylegit+4 | 97/100 | today |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/duckduckgo-content-scope-scripts-cursor-rules-strict-duckplayer-native)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.