diff --git a/dist/types/main.d.ts b/dist/types/main.d.ts new file mode 100644 index 000000000..785d1c788 --- /dev/null +++ b/dist/types/main.d.ts @@ -0,0 +1,13 @@ +export * from "./backends/onnx"; +export * from "./env"; +export * from "./fft"; +export * from "./generation"; +export * from "./image_utils"; +export * from "./models"; +export * from "./pipelines"; +export * from "./processors"; +export * from "./samplers"; +export * from "./tensor_utils"; +export * from "./tokenizers"; +export * from "./transformers"; +export * from "./utils"; diff --git a/package.json b/package.json index 6db67aa92..f926fe935 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.4.2", "description": "Run 🤗 Transformers in your browser! We currently support BERT, ALBERT, DistilBERT, MobileBERT, SqueezeBERT, T5, T5v1.1, FLAN-T5, mT5, BART, MarianMT, GPT2, GPT Neo, CodeGen, Whisper, CLIP, Vision Transformer, VisionEncoderDecoder, and DETR models, for a variety of tasks including: masked language modelling, text classification, token classification, zero-shot classification, text-to-text generation, translation, summarization, question answering, text generation, automatic speech recognition, image classification, zero-shot image classification, image-to-text, image segmentation, and object detection.", "main": "./src/transformers.js", + "types": "./dist/types/main.d.ts", "directories": { "test": "tests" },