UNPKG

sy-bind

Version:

A lightweight binding framework for Cocos Creator

15 lines (14 loc) 489 B
import { sy_pipe_types } from "../../src/types/SyPipeTypes"; type pushMethod<K, C> = sy_pipe_types.pushMethod<K, C>; type popMethod<C> = sy_pipe_types.popMethod<C>; export interface ISyResult<T = void> { success: boolean; data?: T; error?: string; code?: number; } export interface ISyListResult<K, C> { push(method: pushMethod<K, C>): ISyListResult<K, C>; pop(method: popMethod<C>, callback: (popValue: C) => void): ISyListResult<K, C>; } export {};