Skip to content

Conversation

sroussey
Copy link
Contributor

No description provided.

- `configs.ts`: Adds configuration handling for model loading and normalization
- `env.ts`: Provides global environment configuration for the library
- `utils/constants.ts`: Defines constant values used across the library
- `utils/core.ts`: Implements core utility functions and types
- `utils/data-structures.ts`: Introduces custom data structures like PriorityQueue
- `utils/devices.ts`: Defines supported device types
- `utils/hub.ts`: Adds utility functions for interacting with the Hugging Face Hub
- `utils/maths.ts`: Provides mathematical processing utilities
- `utils/tensor.ts`: Implements tensor manipulation and creation functions
- Introduces `dtypes.ts` with data type constants and mappings
- audio.ts
- generic.ts
- ops/registry.ts
- generation/stopping_criteria.ts
@kungfooman
Copy link
Contributor

image

Did it ever cross your mind that you just make beautiful JS unreadable with no gains and forcing everyone to install endless amounts of node_modules for... a PITA? Please learn modern JS, ESM and importmaps.

@BritishWerewolf
Copy link
Contributor

This has been discussed in #1145 where the consensus was the same: TypeScript doesn't provide any additional benefits than what the library already does.
Types exist already.

sroussey added 6 commits March 6, 2025 13:44
- Implement `Processor` base class in `processing_utils.ts` for feature extraction
- Add TypeScript type annotations to `streamers.ts`
- Create `BeitFeatureExtractor` in `image_processing_beit.ts`
- Update `env.ts` to use `ICache` interface
- Simplify import statements in `hub.ts` to use node: prefix
- Improve type annotations in `onnx.ts` and `feature_extraction_utils.ts`
- Add type definitions for cache and model JSON objects
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.

3 participants