Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/translation_unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ pub enum Owner {
/// A section of a source file that is included in the translation unit.
/// This may be a section of the source file, or the entire source file.
pub struct Include {
/// The range that the source code of the include is in the translation unit.
/// The range that the source code of to include is in the translation unit.
pub unit_range: Span,
// The range that the source code of the include is in the source file.
/// The range that the source code of to include is in the source file.
pub source_range: Span,
pub path: PathBuf,
pub owner: Owner,
Expand Down
12 changes: 12 additions & 0 deletions src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ use crate::{
vfs::MemFS,
};

#[wasm_bindgen(typescript_custom_section)]
const TS_APPEND_CONTENT: &'static str = "
export interface Span {
start: number
end: number
}

type Sprite = object

type FxHashMap<K, V> = Map<K, V>
";

#[derive(Tsify, Serialize, Deserialize)]
#[tsify(into_wasm_abi, from_wasm_abi)]
pub struct Build {
Expand Down
Loading