You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a TypeScript node module, and getting the following error when using @randomorg/core:
src/util/random.ts:1:31 - error TS7016: Could not find a declaration file for module '@randomorg/core'. '/home/lsanderson/src/minesweeper/node_modules/@randomorg/core/lib/esm/index.js' implicitly has an 'any' type.
There are types at '/home/lsanderson/src/minesweeper/node_modules/@randomorg/core/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@randomorg/core' library may need to update its package.json or typings.
1 import {RandomOrgClient} from '@randomorg/core';
~~~~~~~~~~~~~~~~~
Found 1 error in src/util/random.ts:1
I can fix this locally by explicitly adding index.d.ts into your package.json, like so:
Activity
RandomOrgDev commentedon Feb 20, 2026
Hi there,
Thanks so much for pointing out this issue!
Your fix looks good and has been added to a new version of the library (1.1.2), which is now available on npm: https://www.npmjs.com/package/@randomorg/core/v/1.1.2
Thanks again and please let us know if you come across any other problems!