Registry / testing / types-redux-orm

types-redux-orm

JSON →
library0.0.4jsnpmunverified

Community-provided TypeScript type definitions for Redux ORM (https://github.com/tommikaikkonen/redux-orm). Version 0.0.4 is a pre-release alpha with no guaranteed backward compatibility. The package was intended to be merged into DefinitelyTyped by early 2018, but as of 2025 it remains unmerged and is effectively unmaintained. It provides interfaces, types, and generics for models, sessions, ORM, and selectors, enabling type-safe use of Redux ORM in TypeScript projects. Key differentiators: it was the primary source of Redux ORM types before the library itself adopted TypeScript. As of Redux ORM v0.16+, official types are included, making this package obsolete.

npm install types-redux-orm
INSTALL
IMPORT
SIG · TYPES-REDUX-ORM
T
types-redux-orm
testingjavascriptv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Model
import { Model } from 'redux-orm'
import { Model } from 'types-redux-orm'
Symbols like Model, attr, ORM are re-exported from redux-orm. types-redux-orm only provides TypeScript type augmentation and should not be imported from directly.
IORMCommonState
import { IORMCommonState } from 'redux-orm'
import { IORMCommonState } from 'types-redux-orm'
IORMCommonState is a type from the types-redux-orm package, but it should be imported from 'redux-orm' if the package is listed in typeRoots. Otherwise, import from 'types-redux-orm' is valid but not recommended.
ITableState
import { ITableState } from 'redux-orm'
import { ITableState } from 'types-redux-orm'
ITableState is defined in types-redux-orm and re-exported by redux-orm when typeRoots includes this package.
createSelectorORM
import { createSelector } from 'redux-orm'
import { createSelectorORM } from 'types-redux-orm'
In types-redux-orm, createSelectorORM is defined but it is a re-export of redux-orm's createSelector. Use createSelector from redux-orm.

Shows how to set up a Redux ORM model with TypeScript types from types-redux-orm, including tsconfig configuration, model definition with generics, session usage in a reducer, and ORM instantiation.

// tsconfig.json { "compilerOptions": { "typeRoots": [ "./node_modules/types-redux-orm", "./node_modules/@types" ] } } // model.ts import { attr, Model, ORM, ITableState, IORMCommonState } from 'redux-orm' export interface IUser { name: string } export class User extends Model<IUser> { static modelName = 'User' static fields = { name: attr() } } export type UserState = ITableState<IUser> export interface IORMState extends IORMCommonState { User: UserState } interface IModels { User: typeof User } const orm = new ORM<IORMState>() orm.register<IModels>(User) export default orm // reducer.ts import orm, { IORMState } from './model' import { Action } from 'redux' interface AddUserAction extends Action<'ADD_USER'> { payload: IUser } const reducer = (state: IORMState, action: AddUserAction): IORMState => { const session = orm.session(state) session.User.upsert<IUser>(action.payload) return session.state } export default reducer
Debug
Known issues
deprecatedtypes-redux-orm is deprecated. Redux ORM v0.16+ includes its own TypeScript types.
fix
Upgrade to redux-orm >=0.16 and remove types-redux-orm dependency. Remove typeRoots config from tsconfig.json.
affects: >=0.0.0
breakingRequires manual typeRoots configuration in tsconfig.json. Without it, TypeScript won't find the types.
fix
Add './node_modules/types-redux-orm' to typeRoots array in tsconfig.json. Note that this may conflict with other typeRoots entries.
affects: >=0.0.0
gotchaNo backward compatibility guaranteed. Types may change between patch versions without notice.
fix
Pin exact version in package.json and test after upgrades.
affects: >=0.0.0
deprecatedThe package refers to an older version of Redux ORM (pre-v0.16). API may differ.
fix
Check Redux ORM changelog and migrate to official types. Many type names have changed (e.g., IORMCommonState is now ORMCommonState).
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'redux-orm' or its corresponding type declarations.
TypeScript cannot resolve types for redux-orm because typeRoots does not include types-redux-orm.
fix
Add './node_modules/types-redux-orm' to typeRoots in tsconfig.json. Ensure types-redux-orm is installed.
Type 'typeof import('...')' has no call signatures.
Attempting to import symbols directly from 'types-redux-orm' which only exports types, not runtime code.
fix
Import runtime symbols (Model, attr, ORM, etc.) from 'redux-orm', not 'types-redux-orm'. Types are augmented automatically.
Property 'upsert' does not exist on type 'QuerySet<...>'.
Type definitions missing for newer Redux ORM methods. types-redux-orm may be outdated.
fix
Upgrade to Redux ORM v0.16+ with official types. Alternatively, manually augment types.
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
types-redux-orm — npm install types-redux-orm · libregistry