Export all input and output types

PiperOrigin-RevId: 502649430
This commit is contained in:
Sebastian Schmidt 2023-01-17 11:56:05 -08:00 committed by Copybara-Service
parent 7a4b450c50
commit 088249eb36
3 changed files with 12 additions and 46 deletions

View File

@ -14,14 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
import {AudioClassifier as AudioClassifierImpl} from '../../../tasks/web/audio/audio_classifier/audio_classifier'; export * from '../../../tasks/web/audio/audio_classifier/audio_classifier';
import {AudioEmbedder as AudioEmbedderImpl} from '../../../tasks/web/audio/audio_embedder/audio_embedder'; export * from '../../../tasks/web/audio/audio_embedder/audio_embedder';
import {FilesetResolver as FilesetResolverImpl} from '../../../tasks/web/core/fileset_resolver'; export * from '../../../tasks/web/core/fileset_resolver';
// Declare the variables locally so that Rollup in OSS includes them explcilty
// as exports.
const AudioClassifier = AudioClassifierImpl;
const AudioEmbedder = AudioEmbedderImpl;
const FilesetResolver = FilesetResolverImpl;
export {AudioClassifier, AudioEmbedder, FilesetResolver};

View File

@ -14,14 +14,6 @@
* limitations under the License. * limitations under the License.
*/ */
import {FilesetResolver as FilesetResolverImpl} from '../../../tasks/web/core/fileset_resolver'; export * from '../../../tasks/web/core/fileset_resolver';
import {TextClassifier as TextClassifierImpl} from '../../../tasks/web/text/text_classifier/text_classifier'; export * from '../../../tasks/web/text/text_classifier/text_classifier';
import {TextEmbedder as TextEmbedderImpl} from '../../../tasks/web/text/text_embedder/text_embedder'; export * from '../../../tasks/web/text/text_embedder/text_embedder';
// Declare the variables locally so that Rollup in OSS includes them explcilty
// as exports.
const FilesetResolver = FilesetResolverImpl;
const TextClassifier = TextClassifierImpl;
const TextEmbedder = TextEmbedderImpl;
export {FilesetResolver, TextClassifier, TextEmbedder};

View File

@ -14,27 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
import {FilesetResolver as FilesetResolverImpl} from '../../../tasks/web/core/fileset_resolver'; export * from '../../../tasks/web/core/fileset_resolver';
import {GestureRecognizer as GestureRecognizerImpl} from '../../../tasks/web/vision/gesture_recognizer/gesture_recognizer'; export * from '../../../tasks/web/vision/gesture_recognizer/gesture_recognizer';
import {HandLandmarker as HandLandmarkerImpl} from '../../../tasks/web/vision/hand_landmarker/hand_landmarker'; export * from '../../../tasks/web/vision/hand_landmarker/hand_landmarker';
import {ImageClassifier as ImageClassifierImpl} from '../../../tasks/web/vision/image_classifier/image_classifier'; export * from '../../../tasks/web/vision/image_classifier/image_classifier';
import {ImageEmbedder as ImageEmbedderImpl} from '../../../tasks/web/vision/image_embedder/image_embedder'; export * from '../../../tasks/web/vision/image_embedder/image_embedder';
import {ObjectDetector as ObjectDetectorImpl} from '../../../tasks/web/vision/object_detector/object_detector'; export * from '../../../tasks/web/vision/object_detector/object_detector';
// Declare the variables locally so that Rollup in OSS includes them explcilty
// as exports.
const FilesetResolver = FilesetResolverImpl;
const GestureRecognizer = GestureRecognizerImpl;
const HandLandmarker = HandLandmarkerImpl;
const ImageClassifier = ImageClassifierImpl;
const ImageEmbedder = ImageEmbedderImpl;
const ObjectDetector = ObjectDetectorImpl;
export {
FilesetResolver,
GestureRecognizer,
HandLandmarker,
ImageClassifier,
ImageEmbedder,
ObjectDetector
};