소스 검색

[demo] Add missing KnockoutObservable<T>

Romain Rigaux 4 년 전
부모
커밋
c72e74f44a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tools/examples/components/sql-scratchpad/src/components/SqlScratchpad.tsx

+ 2 - 0
tools/examples/components/sql-scratchpad/src/components/SqlScratchpad.tsx

@@ -22,6 +22,8 @@ interface SqlScratchpadState {
   executor?: Executor;
 }
 
+type KnockoutObservable<T> = () => T;
+
 export class SqlScratchpad extends React.Component<{}, SqlScratchpadState> {
   state = {
     activeExecutable: undefined,