mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-27 06:11:40 +00:00
feat: fix types and add type checking plus lazybundle on launch andddd dev flag
This commit is contained in:
parent
5e5e65f6d5
commit
32302c37dd
34 changed files with 1807 additions and 977 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import '../global.d.ts'
|
||||
|
||||
import React, { type Ref } from 'react'
|
||||
import React, { type ReactNode, type Ref } from 'react'
|
||||
import { c as _c } from 'react/compiler-runtime'
|
||||
import type { Except } from 'type-fest'
|
||||
|
||||
|
|
@ -11,6 +11,7 @@ import type { KeyboardEvent } from '../events/keyboard-event.js'
|
|||
import type { Styles } from '../styles.js'
|
||||
import * as warn from '../warn.js'
|
||||
export type Props = Except<Styles, 'textWrap'> & {
|
||||
children?: ReactNode
|
||||
ref?: Ref<DOMElement>
|
||||
/**
|
||||
* Tab order index. Nodes with `tabIndex >= 0` participate in
|
||||
|
|
@ -50,7 +51,7 @@ export type Props = Except<Styles, 'textWrap'> & {
|
|||
/**
|
||||
* `<Box>` is an essential Ink component to build your layout. It's like `<div style="display: flex">` in the browser.
|
||||
*/
|
||||
function Box(t0) {
|
||||
function Box(t0: Props) {
|
||||
const $ = _c(42)
|
||||
let autoFocus
|
||||
let children
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue