Fix types

This commit is contained in:
Steve Ruiz 2021-10-12 23:02:44 +01:00
parent 59fa1e375e
commit bd6197ea16
3 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ import type {
import { Canvas } from '../canvas'
import { Inputs } from '../../inputs'
import { useTLTheme, TLContext, TLContextType } from '../../hooks'
import type { TLShapeUtil, TLUser, TLUsers } from '+index'
import type { TLShapeUtil, TLUsers } from '+index'
export interface RendererProps<T extends TLShape, E extends Element = any, M = any>
extends Partial<TLCallbacks<T>> {
@ -35,7 +35,7 @@ export interface RendererProps<T extends TLShape, E extends Element = any, M = a
/**
* (optional) The current users to render.
*/
users?: TLUsers
users?: TLUsers<T>
/**
* (optional) The current user's id, used to identify the user.
*/

View file

@ -1,8 +1,8 @@
import * as React from 'react'
import type { TLUser } from '+types'
import type { TLShape, TLUser } from '+types'
interface UserProps {
user: TLUser
user: TLUser<TLShape>
}
export function User({ user }: UserProps) {

View file

@ -1,10 +1,10 @@
import * as React from 'react'
import { User } from '+components/user/user'
import type { TLUsers } from '+types'
import type { TLShape, TLUsers } from '+types'
export interface UserProps {
userId?: string
users: TLUsers
users: TLUsers<TLShape>
}
export function Users({ userId, users }: UserProps) {