Skip to content

Conversation

Copy link

Copilot AI commented Jan 4, 2026

TypeScript compilation error in generated dist/lenis.d.ts: property __experimental__naiveDimensions referenced in constructor but missing from LenisOptions type definition.

Changes

  • packages/core/src/types.ts: Added __experimental__naiveDimensions?: boolean to LenisOptions interface with @deprecated JSDoc annotation
  • packages/core/src/lenis.ts: Added __experimental__naiveDimensions to OptionalPick utility type parameters for the options field

The __experimental__naiveDimensions parameter exists in the constructor as a deprecated alias that gets converted to naiveDimensions during initialization. This change aligns the type definition with the actual implementation.

Original prompt

This section details on the original issue you should resolve

<issue_title>TypeScript error</issue_title>
<issue_description>```

❌ Found 1 error in 1 file:

File: [email protected]/dist/lenis.d.ts (1 error)

Line 316, Col 24: TS2339 - Property '__experimental__naiveDimensions' does not exist on type 'LenisOptions'.
allowNestedScroll, __experimental__naiveDimensions, naiveDimensions, stopInertiaOnNavigate, }?: LenisOptions);


## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix TypeScript error in lenis options Add missing __experimental__naiveDimensions to LenisOptions type Jan 4, 2026
Copilot AI requested a review from clementroche January 4, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeScript error

2 participants