Typescript Support

Typescript Support

To give support to Web Apps built using Typescript we expose some data types that you can use.


For reaction we expose an array of allowed emojis that can be used in the sendReaction() method

reactions array

You can access them in the following way:

import { reactions } from "@huddle01/iframe/types";
// Output

TReaction type

You can use the TReaction data type in the following way:

import { TReaction } from "@huddle01/iframe/types";
const [reaction, setReaction] = useState<TReaction>("🔥");
Audio/Video Infrastructure designed for the developers to empower them ship simple yet powerful Audio/Video Apps.
Copyright © 2022 Graphene 01, Inc. All Rights Reserved.