Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
Emiyaaaaa committed Aug 25, 2023
1 parent 5d951b3 commit e44628f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Player/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { ReactNode } from 'react';
import { Subscribe, Five } from '@realsee/five';
import { VreoKeyframeConfigMap, VreoKeyframeEvent } from '../typings/VreoUnit';
import { VreoKeyframe, VreoKeyframeConfigMap, VreoKeyframeEvent } from '../typings/VreoUnit';
import { VideoAgentMeshOptions } from './modules/VideoAgent/VideoAgentMesh';
export interface PlayerConfigs {
/**
Expand Down Expand Up @@ -41,7 +41,7 @@ export interface Appearance {
export declare type VreoSubscribe = Pick<Subscribe<VreoKeyframeEvent>, 'on' | 'once' | 'off'>;
export interface CustomVreoKeyframeProps {
subscribe: Pick<Subscribe<{
[key: string]: (data: any, currentTime: number) => any;
[key: string]: (data: VreoKeyframe, currentTime: number) => any;
}>, 'on' | 'once' | 'off'>;
five: Five;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@realsee/vreo",
"version": "2.2.2",
"version": "2.2.3",
"description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
"keywords": [
"realsee",
Expand Down
5 changes: 3 additions & 2 deletions resources/Player/typings.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React, { ReactNode } from 'react';
import { Subscribe, Five } from '@realsee/five';

import { VreoKeyframeConfigMap, VreoKeyframeEvent } from '../typings/VreoUnit'
import { VreoKeyframe, VreoKeyframeConfigMap, VreoKeyframeEvent } from '../typings/VreoUnit'
import { VideoAgentMeshOptions } from './modules/VideoAgent/VideoAgentMesh';
import { Overwrite } from '@realsee/dnalogel/libs/typings/utils.type';

export interface PlayerConfigs {
/**
Expand Down Expand Up @@ -46,6 +47,6 @@ export interface Appearance {
export type VreoSubscribe = Pick<Subscribe<VreoKeyframeEvent>, 'on' | 'once' | 'off'>

export interface CustomVreoKeyframeProps {
subscribe: Pick<Subscribe<{[key: string]: (data: any, currentTime: number) => any}>, 'on' | 'once' | 'off'>
subscribe: Pick<Subscribe<{[key: string]: (data: VreoKeyframe, currentTime: number) => any}>, 'on' | 'once' | 'off'>
five: Five
}

0 comments on commit e44628f

Please sign in to comment.