From bf12ec83deef90a81e9ec511b45453b7176978ec Mon Sep 17 00:00:00 2001 From: crowlkats Date: Tue, 17 Dec 2024 05:33:06 +0100 Subject: [PATCH 1/6] testing: code coverage and more exhaustive tests --- .github/workflows/ci.yml | 12 + Cargo.lock | 1 + Cargo.toml | 1 + src/class.rs | 2 +- src/colors.rs | 106 - src/decorators.rs | 2 +- src/display.rs | 3 +- src/html/symbols/class.rs | 2 +- src/html/symbols/interface.rs | 2 +- src/lib.rs | 1 - src/printer.rs | 37 +- src/tests.rs | 2 +- src/ts_type.rs | 2 +- tests/html_test.rs | 30 + .../html_test__html_doc_files_rewrite-10.snap | 73 +- .../html_test__html_doc_files_rewrite-11.snap | 98 +- .../html_test__html_doc_files_rewrite-12.snap | 320 +- .../html_test__html_doc_files_rewrite-13.snap | 98 +- .../html_test__html_doc_files_rewrite-14.snap | 47 +- .../html_test__html_doc_files_rewrite-15.snap | 96 +- .../html_test__html_doc_files_rewrite-16.snap | 133 +- .../html_test__html_doc_files_rewrite-17.snap | 59 +- .../html_test__html_doc_files_rewrite-18.snap | 146 +- .../html_test__html_doc_files_rewrite-19.snap | 52 +- .../html_test__html_doc_files_rewrite-2.snap | 14 +- .../html_test__html_doc_files_rewrite-20.snap | 14 +- .../html_test__html_doc_files_rewrite-21.snap | 680 +- .../html_test__html_doc_files_rewrite-22.snap | 47 +- .../html_test__html_doc_files_rewrite-23.snap | 121 +- .../html_test__html_doc_files_rewrite-24.snap | 47 +- .../html_test__html_doc_files_rewrite-25.snap | 86 +- .../html_test__html_doc_files_rewrite-26.snap | 134 +- .../html_test__html_doc_files_rewrite-27.snap | 265 +- .../html_test__html_doc_files_rewrite-28.snap | 57 +- .../html_test__html_doc_files_rewrite-29.snap | 101 +- .../html_test__html_doc_files_rewrite-3.snap | 2 +- .../html_test__html_doc_files_rewrite-30.snap | 72 +- .../html_test__html_doc_files_rewrite-31.snap | 53 +- .../html_test__html_doc_files_rewrite-32.snap | 97 +- .../html_test__html_doc_files_rewrite-33.snap | 102 +- .../html_test__html_doc_files_rewrite-34.snap | 136 +- .../html_test__html_doc_files_rewrite-35.snap | 74 +- .../html_test__html_doc_files_rewrite-36.snap | 183 +- .../html_test__html_doc_files_rewrite-37.snap | 106 +- .../html_test__html_doc_files_rewrite-38.snap | 202 +- .../html_test__html_doc_files_rewrite-39.snap | 544 +- .../html_test__html_doc_files_rewrite-4.snap | 2 +- .../html_test__html_doc_files_rewrite-40.snap | 123 +- .../html_test__html_doc_files_rewrite-41.snap | 100 + .../html_test__html_doc_files_rewrite-42.snap | 99 + .../html_test__html_doc_files_rewrite-43.snap | 116 + .../html_test__html_doc_files_rewrite-44.snap | 116 + .../html_test__html_doc_files_rewrite-45.snap | 180 + .../html_test__html_doc_files_rewrite-46.snap | 116 + .../html_test__html_doc_files_rewrite-47.snap | 5 + .../html_test__html_doc_files_rewrite-48.snap | 124 + .../html_test__html_doc_files_rewrite-49.snap | 180 + .../html_test__html_doc_files_rewrite-5.snap | 157 +- .../html_test__html_doc_files_rewrite-50.snap | 99 + .../html_test__html_doc_files_rewrite-51.snap | 124 + .../html_test__html_doc_files_rewrite-52.snap | 99 + .../html_test__html_doc_files_rewrite-53.snap | 174 + .../html_test__html_doc_files_rewrite-6.snap | 98 +- .../html_test__html_doc_files_rewrite-7.snap | 79 +- .../html_test__html_doc_files_rewrite-8.snap | 4 +- .../html_test__html_doc_files_rewrite-9.snap | 100 +- .../html_test__html_doc_files_rewrite.snap | 53 +- tests/snapshots/html_test__symbol_group.snap | 6034 ++++++++++++++--- tests/snapshots/html_test__symbol_search.snap | 452 +- tests/testdata/multiple/a.ts | 128 +- 70 files changed, 10351 insertions(+), 2873 deletions(-) delete mode 100644 src/colors.rs create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-41.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-42.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-43.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-44.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-45.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-46.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-47.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-48.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-49.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-50.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-51.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-52.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-53.snap diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab3fba70..6c8d7214 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,18 @@ jobs: cargo test --locked --all-targets deno test --allow-read --allow-net --allow-env --allow-write + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + + - name: Generate code coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + with: + files: lcov.info + fail_ci_if_error: true + - name: Publish if: | contains(matrix.os, 'ubuntu') && diff --git a/Cargo.lock b/Cargo.lock index 5f8a3c10..7f49f1a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -549,6 +549,7 @@ dependencies = [ "deno_ast", "deno_graph", "deno_path_util", + "deno_terminal 0.2.0", "file_test_runner", "futures", "handlebars", diff --git a/Cargo.toml b/Cargo.toml index 92395153..4d2dda55 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,7 @@ anyhow = "1.0.86" cfg-if = "1.0.0" deno_ast.workspace = true deno_graph.workspace = true +deno_terminal = "0.2.0" indexmap = "2.3.0" import_map.workspace = true lazy_static = "1.5.0" diff --git a/src/class.rs b/src/class.rs index aac19775..9362df2c 100644 --- a/src/class.rs +++ b/src/class.rs @@ -32,7 +32,7 @@ use crate::ParamDef; cfg_if! { if #[cfg(feature = "rust")] { - use crate::colors; + use deno_terminal::colors; use crate::display::display_abstract; use crate::display::display_accessibility; use crate::display::display_async; diff --git a/src/colors.rs b/src/colors.rs deleted file mode 100644 index bcf4331a..00000000 --- a/src/colors.rs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -use std::fmt; -use std::io::Write; -use std::sync::atomic::AtomicBool; -use std::sync::atomic::Ordering; -use termcolor::Ansi; -use termcolor::Color::Ansi256; -use termcolor::Color::Blue; -use termcolor::Color::Green; -use termcolor::Color::Magenta; -use termcolor::Color::Red; -use termcolor::ColorSpec; -use termcolor::WriteColor; - -lazy_static! { - static ref USE_COLOR: AtomicBool = AtomicBool::new(false); -} - -#[cfg(feature = "rust")] -pub fn enable_color() { - USE_COLOR.store(true, Ordering::Relaxed); -} - -#[cfg(feature = "rust")] -pub fn disable_color() { - USE_COLOR.store(false, Ordering::Relaxed); -} - -pub fn use_color() -> bool { - USE_COLOR.load(Ordering::Relaxed) -} - -fn style>(s: S, colorspec: ColorSpec) -> impl fmt::Display { - if !use_color() { - return String::from(s.as_ref()); - } - let mut v = Vec::new(); - let mut ansi_writer = Ansi::new(&mut v); - ansi_writer.set_color(&colorspec).unwrap(); - ansi_writer.write_all(s.as_ref().as_bytes()).unwrap(); - ansi_writer.reset().unwrap(); - String::from_utf8_lossy(&v).into_owned() -} - -pub fn yellow>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Ansi256(11))); - style(s, style_spec) -} - -pub fn cyan>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Ansi256(14))); - style(s, style_spec) -} - -pub fn red>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Red)); - style(s, style_spec) -} - -pub fn green>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Green)).set_intense(true); - style(s, style_spec) -} - -pub fn magenta>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Magenta)); - style(s, style_spec) -} - -pub fn bold>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_bold(true); - style(s, style_spec) -} - -#[cfg(feature = "rust")] -pub fn gray>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Ansi256(8))); - style(s, style_spec) -} - -#[cfg(feature = "rust")] -pub fn italic_gray>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Ansi256(8))).set_italic(true); - style(s, style_spec) -} - -#[cfg(feature = "rust")] -pub fn italic_cyan>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Ansi256(14))).set_italic(true); - style(s, style_spec) -} - -pub fn intense_blue>(s: S) -> impl fmt::Display { - let mut style_spec = ColorSpec::new(); - style_spec.set_fg(Some(Blue)).set_intense(true); - style(s, style_spec) -} diff --git a/src/decorators.rs b/src/decorators.rs index e59fc490..c87ffd1d 100644 --- a/src/decorators.rs +++ b/src/decorators.rs @@ -1,6 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -use crate::colors; use crate::node::Location; use crate::util::swc::get_location; @@ -8,6 +7,7 @@ use deno_ast::swc::ast::Decorator; use deno_ast::swc::ast::Expr; use deno_ast::ParsedSource; use deno_ast::SourceRangedForSpanned; +use deno_terminal::colors; use serde::Deserialize; use serde::Serialize; use std::fmt::Display; diff --git a/src/display.rs b/src/display.rs index 0c4818ea..aba3b559 100644 --- a/src/display.rs +++ b/src/display.rs @@ -1,5 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -use crate::colors; + +use deno_terminal::colors; use std::fmt::Display; use std::fmt::Formatter; use std::fmt::Result; diff --git a/src/html/symbols/class.rs b/src/html/symbols/class.rs index cd7c7938..d71b8a30 100644 --- a/src/html/symbols/class.rs +++ b/src/html/symbols/class.rs @@ -379,7 +379,7 @@ fn render_class_method( tags.insert(Tag::Abstract); } if method.optional { - tags.insert(Tag::Abstract); + tags.insert(Tag::Optional); } Some(DocEntryCtx::new( diff --git a/src/html/symbols/interface.rs b/src/html/symbols/interface.rs index 347c4360..22207791 100644 --- a/src/html/symbols/interface.rs +++ b/src/html/symbols/interface.rs @@ -225,7 +225,7 @@ pub(crate) fn render_methods( .iter() .enumerate() .map(|(i, method)| { - let id = name_to_id("call_signature", &format!("{}_{i}", method.name)); + let id = name_to_id("methods", &format!("{}_{i}", method.name)); let name = if method.name == "new" { "new".to_string() diff --git a/src/lib.rs b/src/lib.rs index c37f179c..9bb12565 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,6 @@ extern crate lazy_static; extern crate serde_json; pub mod class; -mod colors; mod decorators; mod diagnostics; mod display; diff --git a/src/printer.rs b/src/printer.rs index 733e98a7..21fb8192 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -9,12 +9,19 @@ use crate::js_doc::JsDocTag; use crate::node::DeclarationKind; use crate::node::DocNode; use crate::node::DocNodeKind; -use crate::{colors, Location}; +use crate::Location; + +use deno_terminal::colors; +use deno_terminal::colors::Style; use std::fmt::Display; use std::fmt::Formatter; use std::fmt::Result as FmtResult; +fn italic_cyan<'a, S: Display + 'a>(s: S) -> Style> { + colors::italic(colors::cyan(s)) +} + pub struct DocPrinter<'a> { doc_nodes: &'a [DocNode], use_color: bool, @@ -44,9 +51,7 @@ impl<'a> DocPrinter<'a> { doc_nodes: &[DocNode], indent: i64, ) -> FmtResult { - if self.use_color { - colors::enable_color(); - } + colors::set_use_color(self.use_color); let mut sorted = Vec::from(doc_nodes); sorted.sort_unstable_by(|a, b| { @@ -101,7 +106,7 @@ impl<'a> DocPrinter<'a> { } if self.use_color { - colors::disable_color(); + colors::set_use_color(false); } Ok(()) @@ -231,7 +236,7 @@ impl<'a> DocPrinter<'a> { "{}@{} {{{}}}", Indent(indent), colors::magenta("default"), - colors::italic_cyan(value) + italic_cyan(value), )?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) } @@ -245,7 +250,7 @@ impl<'a> DocPrinter<'a> { "{}@{} {{{}}}", Indent(indent), colors::magenta("enum"), - colors::italic_cyan(type_ref) + italic_cyan(type_ref), )?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) } @@ -262,7 +267,7 @@ impl<'a> DocPrinter<'a> { "{}@{} {{{}}}", Indent(indent), colors::magenta("extends"), - colors::italic_cyan(type_ref) + italic_cyan(type_ref) )?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) } @@ -285,12 +290,12 @@ impl<'a> DocPrinter<'a> { } => { write!(w, "{}@{}", Indent(indent), colors::magenta("param"))?; if let Some(type_ref) = type_ref { - write!(w, " {{{}}}", colors::italic_cyan(type_ref))?; + write!(w, " {{{}}}", italic_cyan(type_ref))?; } if *optional { write!(w, " [?]")?; } else if let Some(default) = default { - write!(w, " [{}]", colors::italic_cyan(default))?; + write!(w, " [{}]", italic_cyan(default))?; } writeln!(w, " {}", colors::bold(name))?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) @@ -311,7 +316,7 @@ impl<'a> DocPrinter<'a> { "{}@{} {{{}}} {}", Indent(indent), colors::magenta("property"), - colors::italic_cyan(type_ref), + italic_cyan(type_ref), colors::bold(name) )?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) @@ -325,7 +330,7 @@ impl<'a> DocPrinter<'a> { JsDocTag::Return { type_ref, doc } => { write!(w, "{}@{}", Indent(indent), colors::magenta("return"))?; if let Some(type_ref) = type_ref { - writeln!(w, " {{{}}}", colors::italic_cyan(type_ref))?; + writeln!(w, " {{{}}}", italic_cyan(type_ref))?; } else { writeln!(w)?; } @@ -356,7 +361,7 @@ impl<'a> DocPrinter<'a> { "{}@{} {{{}}}", Indent(indent), colors::magenta("this"), - colors::italic_cyan(type_ref) + italic_cyan(type_ref) )?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) } @@ -370,7 +375,7 @@ impl<'a> DocPrinter<'a> { "{}@{} {{{}}} {}", Indent(indent), colors::magenta("typedef"), - colors::italic_cyan(type_ref), + italic_cyan(type_ref), colors::bold(name) )?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) @@ -381,7 +386,7 @@ impl<'a> DocPrinter<'a> { "{}@{} {{{}}}", Indent(indent), colors::magenta("typeref"), - colors::italic_cyan(type_ref) + italic_cyan(type_ref) )?; self.format_jsdoc_tag_maybe_doc(w, doc, indent) } @@ -407,7 +412,7 @@ impl<'a> DocPrinter<'a> { JsDocTag::Throws { type_ref, doc } => { write!(w, "{}@{}", Indent(indent), colors::magenta("return"))?; if let Some(type_ref) = type_ref { - writeln!(w, " {{{}}}", colors::italic_cyan(type_ref))?; + writeln!(w, " {{{}}}", italic_cyan(type_ref))?; } else { writeln!(w)?; } diff --git a/src/tests.rs b/src/tests.rs index 6a4b7bce..d8b02778 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -482,7 +482,7 @@ async fn deep_reexports() { assert!(DocPrinter::new(&entries, false, false) .to_string() - .contains("const foo")) + .contains("const foo")); } #[tokio::test] diff --git a/src/ts_type.rs b/src/ts_type.rs index be605c3c..47816841 100644 --- a/src/ts_type.rs +++ b/src/ts_type.rs @@ -1,6 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -use crate::colors; use crate::display::display_computed; use crate::display::display_optional; use crate::display::display_readonly; @@ -26,6 +25,7 @@ use crate::variable::VariableDef; use deno_ast::swc::ast::*; use deno_ast::ParsedSource; use deno_ast::SourceRangedForSpanned; +use deno_terminal::colors; use serde::Deserialize; use serde::Serialize; use std::fmt::Display; diff --git a/tests/html_test.rs b/tests/html_test.rs index 2ae9eb7b..ec018c79 100644 --- a/tests/html_test.rs +++ b/tests/html_test.rs @@ -261,30 +261,60 @@ async fn html_doc_files_rewrite() { "./index.html", "./~/A.html", "./~/A.prototype.html", + "./~/AbstractClass.html", + "./~/AbstractClass.prototype.foo.html", + "./~/AbstractClass.prototype.getter.html", + "./~/AbstractClass.prototype.html", + "./~/AbstractClass.prototype.method.html", "./~/B.html", "./~/B.prototype.html", "./~/Bar.html", "./~/Bar.prototype.html", + "./~/Baz.bar.html", "./~/Baz.foo.html", "./~/Baz.html", + "./~/EmptyInterface.html", + "./~/Enum.html", + "./~/Enum2.html", "./~/Foo.bar.html", "./~/Foo.html", "./~/Foo.prototype.\">.html", + "./~/Foo.prototype.[Symbol.iterator].html", "./~/Foo.prototype.foo.html", + "./~/Foo.prototype.getter.html", + "./~/Foo.prototype.getterAndSetter.html", "./~/Foo.prototype.html", + "./~/Foo.prototype.methodWithOverloads.html", + "./~/Foo.prototype.protectedProperty.html", + "./~/Foo.prototype.readonlyProperty.html", + "./~/Foo.prototype.setter.html", "./~/Foo.prototype.test.html", + "./~/Foo.staticMethod.html", + "./~/Foo.staticSetter.html", "./~/Foobar.html", "./~/Foobar.prototype.html", + "./~/Hello.ab.html", + "./~/Hello.computedMethod.html", "./~/Hello.html", + "./~/Hello.optionalMethod.html", + "./~/Hello.test.html", "./~/Hello.world.html", + "./~/Hello.x.html", + "./~/InterfaceWithIndexSignature.html", "./~/Testing.externalFunction.html", "./~/Testing.html", "./~/Testing.prototype.html", "./~/Testing.t.html", "./~/Testing.x.html", + "./~/TypeAlias.html", + "./~/anotherVariable.bar.html", + "./~/anotherVariable.foo.html", + "./~/anotherVariable.html", "./~/c.html", "./~/d.html", + "./~/functionWithOptionalParameters.html", "./~/qaz.html", + "./~/someVariable.html", "./~/x.html", "c/index.html", "c/~/x.html", diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-10.snap b/tests/snapshots/html_test__html_doc_files_rewrite-10.snap index b4605b37..1664504a 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-10.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-10.snap @@ -1,11 +1,11 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- - Baz - documentation + B - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
  • Baz
+
  • B
-
-

Usage

import { type Baz } from ".";
-
-
+
diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-11.snap b/tests/snapshots/html_test__html_doc_files_rewrite-11.snap index a6d4f579..f941ad60 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-11.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-11.snap @@ -1,99 +1,5 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- - - - - Foo.bar - documentation - - - - - - - - - - -
-
-
-
-
-

Usage

import { Foo } from ".";
-
-
-
-
-
- - + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-12.snap b/tests/snapshots/html_test__html_doc_files_rewrite-12.snap index 4d41630c..424d5b5d 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-12.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-12.snap @@ -1,11 +1,11 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- - Foo - documentation + Bar - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
  • Foo
+
  • Bar
-
+
- class Foo -

some Foo docs Bar

-
-
- - - - - - - - - - -

test

-

-

hello

-

bar

-
foo
-
-

baz

-
-
-
- - - - - - - - - - -

test 2

-

-

hello

-

bar

-
foo
-
-

baz

+ class Bar +
+ extends Foo<string> +
+

Some quote in bar docs +This quote part is ignored +when getting the title of this doc

+
+

Bar docs

-
-
-
-
-

- - - - - - - - - - -Properties

-
-
- -
-
-
-
-
-

- - - - - - - - - - -Static Properties

- -
-
- - - - - - - - - - -bar: "string" - -
-
-
-

Usage

import { Foo } from ".";
-
-
+
diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-13.snap b/tests/snapshots/html_test__html_doc_files_rewrite-13.snap index 83b227bf..249b4727 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-13.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-13.snap @@ -1,99 +1,5 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- - - - - Foo.prototype."><img src=x onerror=alert(1)> - documentation - - - - - - - - - - -
-
-
-
-
-
- property Foo.prototype."><img src=x onerror=alert(1)> -
-
- -
-
number - -
-
-
-
-
-
-
-

Usage

import { Foo } from ".";
-
-
-
-
-
- - + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-14.snap b/tests/snapshots/html_test__html_doc_files_rewrite-14.snap index d08fd059..31a8d53f 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-14.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-14.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Foo.prototype.foo - documentation + Baz.bar - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> - + -
-

Usage

import { Foo } from ".";
-
-

Document Navigation

+

Document Navigation

diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-15.snap b/tests/snapshots/html_test__html_doc_files_rewrite-15.snap index 50404116..dceca004 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-15.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-15.snap @@ -2,4 +2,98 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- - + + + + Baz.foo - documentation + + + + + + + + + + +
+
+
+
+
+
+ property Baz.foo +
+
+ +
+
Record<string, T extends string ? 0 : 1> + +
+
+
+
+
+
+
+

Usage

import { type Baz } from ".";
+
+
+
+
+
+ + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-16.snap b/tests/snapshots/html_test__html_doc_files_rewrite-16.snap index 02eda4c1..cb521110 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-16.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-16.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Foo.prototype.test - documentation + Baz - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> - +
  • Baz
-
-

Usage

import { Foo } from ".";
-
-

Document Navigation

+

Document Navigation

diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-17.snap b/tests/snapshots/html_test__html_doc_files_rewrite-17.snap index 47749270..65b73b3a 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-17.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-17.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Foobar - documentation + EmptyInterface - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
  • Foobar
+
  • EmptyInterface
-
+
- class Foobar -
// This code block is ignored when getting the title of this doc
-const foobar = new Foobar();
-
-

Foobar docs

-
- -
-
+ interface EmptyInterface +
-

Usage

import Foobar from ".";
-
+
diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-18.snap b/tests/snapshots/html_test__html_doc_files_rewrite-18.snap index 98d0f995..b241cae2 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-18.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-18.snap @@ -2,4 +2,148 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- - + + + + Enum - documentation + + + + + + + + + + +
+
+
+
+
+

Usage

import { Enum } from ".";
+
+
+
+
+
+ + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-19.snap b/tests/snapshots/html_test__html_doc_files_rewrite-19.snap index 9c60c1c8..0e1545c4 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-19.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-19.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Hello - documentation + Enum2 - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
  • Hello
+
  • Enum2
-
-

Usage

import { type Hello } from ".";
-
+

Document Navigation

diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-2.snap b/tests/snapshots/html_test__html_doc_files_rewrite-2.snap index fbb18bd7..c9fdfd3d 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-2.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-2.snap @@ -41,6 +41,10 @@ expression: files.get(file_name).unwrap()
f
externalFunction
+
  • +
    c
    +AbstractClass +
  • c
    Bar @@ -50,15 +54,11 @@ expression: files.get(file_name).unwrap() Baz
  • -
    c
    -Foo -
    -
  • -
    c
    -Foobar +
    I
    +EmptyInterface
  • - view all 17 symbolsview all 26 symbols - Hello.world - documentation + Foo.bar - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> - + -
    +
    - property Hello.world + property Foo.bar

    -Type

    +Type
    "string" @@ -78,8 +78,8 @@ Type
    -

    Usage

    import { type Hello } from ".";
    -
    -
    +
    - function Testing.externalFunction -
    +
    + + + + + + + + + + +

    test

    +

    +

    hello

    +

    bar

    +
    foo
    +
    +

    baz

    +
    +
    +
    + + + + + + + + + + +

    test 2

    +

    +

    hello

    +

    bar

    +
    foo
    +
    +

    baz

    +
    +
    +
    +
    +
    +

    + + + + + + + + + + +Constructors

    + +
    +
    new
    +
    + + + + + + + + + + +Foo(value: T) + +
    +
    +
    +
    +

    + + + + + + + + + + +Type Parameters

    + +
    +
    +
    +
    +

    + + + + + + + + + + +Properties

    +
    + +
    +
    abstract
    +
    + + + + + + + + + + +foo: A + +
    +
    + +
    +
    + +
    +
    protected
    +
    readonly
    +
    + + + + + + + + + + +getter + +
    +
    + +
    +
    protected
    +
    + + + + + + + + + + +protectedProperty: boolean + +
    +
    + +
    +
    readonly
    +
    + + + + + + + + + + +readonlyProperty: boolean + +
    +
    + +
    +
    writeonly
    +
    + + + + + + + + + + +setter: string + +
    +
    + +
    +
    +
    +
    +
    + +
    +
    private
    +
    + + + + + + + + + + +methodWithOverloads(s: number): void + +
    +
    + +
    +
    private
    +
    + + + + + + + + + + +methodWithOverloads(s: string): void + +
    +
    + +
    +
    -externalFunction(_n?: number): void -
    +test(): void + +
    +
    +
    + +
    +
    -Parameters
    +bar: "string" + +
    +
    -
    optional
    -
    writeonly
    +
    -_n: number = 0 +staticSetter: number
    -
    +
    -

    -Return Type
    +Static Methods
    -
    -

    Usage

    import { Testing } from ".";
    -const { externalFunction } = Testing;
    -
    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-22.snap b/tests/snapshots/html_test__html_doc_files_rewrite-22.snap index f2b13e57..83b227bf 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-22.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-22.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Testing - documentation + Foo.prototype."><img src=x onerror=alert(1)> - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
    • Testing
    + -
    +
    - class Testing -
    -
    -
    -
    -
    -
    - namespace Testing -
    + property Foo.prototype."><img src=x onerror=alert(1)> +
    -
    - Testing.externalFunction - -
    No documentation available
    -
    f
    -
    - Testing.t - -
    No documentation available
    -
    f
    -
    - Testing.x +Type
    -
    No documentation available
    -
    -
    +
    +
    number + +
    +
    -

    Usage

    import { Testing } from ".";
    -
    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-23.snap b/tests/snapshots/html_test__html_doc_files_rewrite-23.snap index 1f543d84..0fb90a6c 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-23.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-23.snap @@ -2,4 +2,123 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- - + + + + Foo.prototype.[Symbol.iterator] - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { Foo } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-24.snap b/tests/snapshots/html_test__html_doc_files_rewrite-24.snap index fda35787..d08fd059 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-24.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-24.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Testing.t - documentation + Foo.prototype.foo - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> - + -
    -

    Usage

    import { Testing } from ".";
    -
    -

    Document Navigation

    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-25.snap b/tests/snapshots/html_test__html_doc_files_rewrite-25.snap index 408584c1..f9c7c6b1 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-25.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-25.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Testing.x - documentation + Foo.prototype.getter - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> - + -
    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-26.snap b/tests/snapshots/html_test__html_doc_files_rewrite-26.snap index 6add1e4e..57f9486e 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-26.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-26.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - c - documentation + Foo.prototype.getterAndSetter - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
    • c
    + -
    +
    +
    +
    +
    + method Foo.prototype.getterAndSetter +
    + + + + + + + + + + + +Foo.prototype.getterAndSetter(s): void +
    +
    +

    + + + + + + + + + + +Parameters

    + +
    +
    +
    +
    +

    + + + + + + + + + + +Return Type

    -
    string +
    void
    @@ -103,8 +213,8 @@ Return Type
    -

    Usage

    import { c } from ".";
    -
    -

    Document Navigation

    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-27.snap b/tests/snapshots/html_test__html_doc_files_rewrite-27.snap index 0debfae7..50404116 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-27.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-27.snap @@ -2,267 +2,4 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- - - - - d - documentation - - - - - - - - - - -
    -
    -
    -
    -
    -

    Usage

    import { d } from ".";
    -
    -
    -
    -
    -
    - - + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-28.snap b/tests/snapshots/html_test__html_doc_files_rewrite-28.snap index f853a35d..49a479f6 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-28.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-28.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - qaz - documentation + Foo.prototype.methodWithOverloads - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
    • qaz
    +
    -
    +
    - function qaz -
    + -qaz(a: string) -
    -
    Deprecated
    +Foo.prototype.methodWithOverloads(s: number): void +

    -Parameters

    +Parameters
    -
    -a: string +s: number
    @@ -144,10 +143,16 @@ Parameters
    -Return Type
    +Return Type
    + +
    +
    void + +
    +
    -
    -
    -qaz(a: number) +Foo.prototype.methodWithOverloads(s: string): void

    -Parameters
    +Parameters
    -
    -a: number +s: string
    @@ -247,15 +252,21 @@ Parameters
    -Return Type
    +Return Type
    + +
    +
    void + +
    +
    -

    Usage

    import { qaz } from ".";
    -
    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-29.snap b/tests/snapshots/html_test__html_doc_files_rewrite-29.snap index 60770f81..7a66cb57 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-29.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-29.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - x - documentation + Foo.prototype.protectedProperty - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
    • x
    + -
    -

    Usage

    import { x } from ".";
    -
    -

    Document Navigation

    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-3.snap b/tests/snapshots/html_test__html_doc_files_rewrite-3.snap index 62dcf5d5..25eaafcf 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-3.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-3.snap @@ -1,6 +1,6 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-30.snap b/tests/snapshots/html_test__html_doc_files_rewrite-30.snap index 2e3f7ce1..02f9a170 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-30.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-30.snap @@ -5,10 +5,10 @@ expression: files.get(file_name).unwrap() - c - documentation + Foo.prototype.readonlyProperty - documentation - + @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
  • c
  • + -
    -
    -
    +
    +
    +
    +
    + property Foo.prototype.readonlyProperty +
    -
    - x +Type
    -
    No documentation available
    -
    -
    +
    +
    boolean + +
    +
    -
    -
    + +
    -

    Usage

    import * as c from "c";
    -
    -
    +
    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-31.snap b/tests/snapshots/html_test__html_doc_files_rewrite-31.snap index 248833ad..7d967b7c 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-31.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-31.snap @@ -5,21 +5,21 @@ expression: files.get(file_name).unwrap() - x - c - documentation + Foo.prototype.setter - documentation - - - - - - - + + + + + + +
    -
    +
    - function x -
    + -x(_n?: number): void +Foo.prototype.setter(s: string): void

    -Parameters

    +Parameters
    -
    optional
    -
    -_n: number = 0 +s: string
    @@ -152,7 +143,7 @@ Parameters
    -Return Type
    +Return Type
    void @@ -165,8 +156,8 @@ Return Type
    -

    Usage

    import { x } from "c";
    -
    -

    Document Navigation

    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-32.snap b/tests/snapshots/html_test__html_doc_files_rewrite-32.snap index eaa5fdce..02eda4c1 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-32.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-32.snap @@ -5,10 +5,10 @@ expression: files.get(file_name).unwrap() - d - documentation + Foo.prototype.test - documentation - + @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
  • d
  • +
    -
    -
    -
    +
    +
    - -
    +
    +
    -

    Usage

    import * as mod from "d";
    -
    -
    +
    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-33.snap b/tests/snapshots/html_test__html_doc_files_rewrite-33.snap index 9fc08737..d9d9637d 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-33.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-33.snap @@ -5,21 +5,21 @@ expression: files.get(file_name).unwrap() - externalFunction - d - documentation + Foo.staticMethod - documentation - - - - - - - + + + + + + +
    -
    +
    - function externalFunction -
    + -externalFunction(_n?: number): void -
    -
    -

    - - - - - - - - - - -Parameters

    - -
    -
    optional
    -
    - - - - - - - - - - -_n: number = 0 - -
    -
    -
    +Foo.staticMethod(): void +

    -Return Type
    +Return Type
    void @@ -165,8 +103,8 @@ Return Type
    -

    Usage

    import { externalFunction } from "d";
    -
    -

    Document Navigation

    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-34.snap b/tests/snapshots/html_test__html_doc_files_rewrite-34.snap index 59eb2319..75cc3c99 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-34.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-34.snap @@ -5,10 +5,10 @@ expression: files.get(file_name).unwrap() - foo - documentation + Foo.staticSetter - documentation - + @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
  • foo
  • +
    • Foo
    • .
    • staticSetter
    -
    -
    -
    +
    +
    -

    -
    - default +Return Type
    -

    The default export item.

    -
    -
    -
    +
    +
    void + +
    +
    +
    -
    -
    +
    +
    -

    Usage

    import * as bar from "foo";
    -
    -
    +
    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-35.snap b/tests/snapshots/html_test__html_doc_files_rewrite-35.snap index 17abc251..aa3ef449 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-35.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-35.snap @@ -5,21 +5,21 @@ expression: files.get(file_name).unwrap() - default - foo - documentation + Foobar - documentation - - - - - - - + + + + + + +
    -
    -

    Usage

    import bar from "foo";
    -
    -

    Document Navigation

    +

    Document Navigation

    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-36.snap b/tests/snapshots/html_test__html_doc_files_rewrite-36.snap index c5f81334..98d0f995 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-36.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-36.snap @@ -2,185 +2,4 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- - - - - x - foo - documentation - - - - - - - - - - -
    -
    -
    -
    -
    -

    Usage

    import { x } from "foo";
    -
    -
    -
    -
    -
    - - + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-37.snap b/tests/snapshots/html_test__html_doc_files_rewrite-37.snap index 4778501f..d73bbf86 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-37.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-37.snap @@ -2,14 +2,98 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- -// deno-fmt-ignore-file -// deno-lint-ignore-file -/** - * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io) - * - * Copyright (c) 2023 Kiro Risk (http://kiro.me) - * All Rights Reserved. Apache Software License 2.0 - * - * http://www.apache.org/licenses/LICENSE-2.0 - */ -var e,t;e=this,t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?$.getFn:n,o=t.fieldNormWeight,c=void 0===o?$.fieldNormWeight:o;r(this,e),this.norm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(F).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);return n.set(i,c),c},clear:function(){n.clear()}}}(c,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return o(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,m(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();m(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?$.getFn:r,o=n.fieldNormWeight,c=void 0===o?$.fieldNormWeight:o,a=new R({getFn:i,fieldNormWeight:c});return a.setKeys(e.map(A)),a.setSources(t),a.create(),a}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?$.distance:s,h=t.ignoreLocation,l=void 0===h?$.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-o);return u?f+d/u:d?1:f}var W=32;function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?$.location:i,c=r.distance,a=void 0===c?$.distance:c,s=r.threshold,u=void 0===s?$.threshold:s,h=r.findAllMatches,l=void 0===h?$.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?$.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?$.includeMatches:v,y=r.ignoreLocation,p=void 0===y?$.ignoreLocation:y;if(t.length>W)throw new Error("Pattern length exceeds max of ".concat(W,"."));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,w=b,S=d>1||g,L=S?Array(M):[];(m=e.indexOf(t,w))>-1;){var _=N(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(_,x),w=m+k,S)for(var O=0;O=P;D-=1){var K=D-1,q=n[e.charAt(K)];if(S&&(L[K]=+!!q),z[D]=(z[D+1]<<1|1)&q,E&&(z[D]|=(j[D+1]|j[D])<<1|1|j[D+1]),z[D]&C&&(A=N(t,{errors:E,currentLocation:K,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=A,(w=K)<=b)break;P=Math.max(1,2*b-w)}}if(N(t,{errors:E+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;j=z}var B={isMatch:w>=0,score:Math.max(.001,A)};if(S){var J=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(L,d);J.length?g&&(B.indices=J):B.isMatch=!1}return B}function z(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,c=void 0===o?$.location:o,a=i.threshold,s=void 0===a?$.threshold:a,u=i.distance,h=void 0===u?$.distance:u,l=i.includeMatches,f=void 0===l?$.includeMatches:l,d=i.findAllMatches,v=void 0===d?$.findAllMatches:d,g=i.minMatchCharLength,y=void 0===g?$.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?$.isCaseSensitive:p,k=i.ignoreLocation,M=void 0===k?$.ignoreLocation:k;if(r(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){n.chunks.push({pattern:e,alphabet:z(e),startIndex:t})},x=this.pattern.length;if(x>W){for(var w=0,S=x%W,L=x-S;w1&&void 0!==arguments[1]?arguments[1]:{},c=o.location,a=void 0===c?$.location:c,s=o.threshold,u=void 0===s?$.threshold:s,h=o.distance,l=void 0===h?$.distance:h,f=o.includeMatches,d=void 0===f?$.includeMatches:f,v=o.findAllMatches,g=void 0===v?$.findAllMatches:v,y=o.minMatchCharLength,p=void 0===y?$.minMatchCharLength:y,m=o.isCaseSensitive,k=void 0===m?$.isCaseSensitive:m,M=o.ignoreLocation,b=void 0===M?$.ignoreLocation:M;return r(this,n),(i=t.call(this,e))._bitapSearch=new D(e,{location:a,threshold:u,distance:l,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),i}return o(n,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(K),X=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(K),Y=[B,X,U,V,H,G,J,Q],Z=Y.length,ee=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,te=new Set([Q.type,X.type]),ne=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.isCaseSensitive,o=void 0===i?$.isCaseSensitive:i,c=n.includeMatches,a=void 0===c?$.includeMatches:c,s=n.minMatchCharLength,u=void 0===s?$.minMatchCharLength:s,h=n.ignoreLocation,l=void 0===h?$.ignoreLocation:h,f=n.findAllMatches,d=void 0===f?$.findAllMatches:f,v=n.location,g=void 0===v?$.location:v,y=n.threshold,p=void 0===y?$.threshold:y,m=n.distance,k=void 0===m?$.distance:m;r(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:l,location:g,threshold:p,distance:k},this.pattern=o?t:t.toLowerCase(),this.query=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(ee).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n;return ue(e)||(e=he(e)),function e(n){var i=Object.keys(n),o=function(e){return!!e[ae]}(n);if(!o&&i.length>1&&!ue(n))return e(he(n));if(function(e){return!g(e)&&b(e)&&!ue(e)}(n)){var c=o?n[ae]:i[0],a=o?n[se]:n[c];if(!m(a))throw new Error(function(e){return"Invalid value for key ".concat(e)}(c));var s={keyId:C(c),pattern:a};return r&&(s.searcher=ie(a,t)),s}var u={children:[],operator:i[0]};return i.forEach((function(t){var r=n[t];g(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u}(e)}function fe(e,t){var n=e.matches;t.matches=[],x(n)&&n.forEach((function(e){if(x(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function de(e,t){t.score=e.score}var ve=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;r(this,e),this.options=t(t({},$),i),this.options.useExtendedSearch,this._keyStore=new j(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof R))throw new Error("Incorrect 'index' type");this._myIndex=t||P(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{}).limit,n=void 0===t?-1:t,r=this.options,i=r.includeMatches,o=r.includeScore,c=r.shouldSort,a=r.sortFn,s=r.ignoreFieldNorm,u=m(e)?m(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){var n=t.ignoreFieldNorm,r=void 0===n?$.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,i=e.norm,o=e.score,c=n?n.weight:null;t*=Math.pow(0===o&&c?Number.EPSILON:o,(c||1)*(r?1:i))})),e.score=t}))}(u,{ignoreFieldNorm:s}),c&&u.sort(a),k(n)&&n>-1&&(u=u.slice(0,n)),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?$.includeMatches:r,o=n.includeScore,c=void 0===o?$.includeScore:o,a=[];return i&&a.push(fe),c&&a.push(de),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}(u,this._docs,{includeMatches:i,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=ie(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(x(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=le(e,this.options),r=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return a&&a.length?[{idx:i,item:r,matches:a}]:[]}for(var s=[],u=0,h=n.children.length;u1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?$.getFn:n,i=t.fieldNormWeight,o=void 0===i?$.fieldNormWeight:i,c=e.keys,a=e.records,s=new R({getFn:r,fieldNormWeight:o});return s.setKeys(c),s.setIndexRecords(a),s},ve.config=$,function(){re.push.apply(re,arguments)}(ne),ve},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t(); + + + + Hello.ab - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { type Hello } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-38.snap b/tests/snapshots/html_test__html_doc_files_rewrite-38.snap index e67d0c9c..52f2ab8e 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-38.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-38.snap @@ -2,38 +2,176 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- -function findParent(el, find) { - do { - if (find(el)) { - return el; - } - } while (el = el.parentElement); -} + + + + Hello.computedMethod - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    + method Hello.computedMethod +
    + + + + + + + + + + + +Hello.computedMethod(a: T extends () => infer R ? R : any): void +
    +
    +

    + + + + + + + + + + +Parameters

    -window.addEventListener("load", () => { - const usageSelector = document.getElementById("usageSelector"); +
    +
    + + + + + + + + + + +a: T extends () => infer R ? R : any + +
    +
    +
    +
    +

    + + + + + + + + + + +Return Type

    - document.addEventListener("mouseup", (e) => { - if ( - findParent( - e.target, - (el) => - el.parentElement === usageSelector && el instanceof HTMLDivElement, - ) - ) { - usageSelector.open = false; - } - }); -}); +
    +
    void + +
    +
    +
    +
    +
    +
    +
    +
    +

    Usage

    import { type Hello } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-39.snap b/tests/snapshots/html_test__html_doc_files_rewrite-39.snap index 33d6c4a7..af73f984 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-39.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-39.snap @@ -2,144 +2,430 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- -const Fuse = window.Fuse; + + + + Hello - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    + interface Hello +
    +
    +

    + + + + + + + + + + +Type Parameters

    -function doSearch(val) { - if (!val) { - updateCurrentLocation(val); - showPage(); - } else { - const results = searchInIndex(val); - // console.log("results", results); - updateCurrentLocation(val); - renderResults(results); - showSearchResults(); - } -} +
    +
    + + + + + + + + + + +T extends string + +
    +
    -function updateCurrentLocation(val) { - const url = new URL(window.location.href); - if (val) { - url.searchParams.set("q", val); - } else { - url.searchParams.delete("q"); - } - window.history.replaceState({}, "", url.href); -} +
    +
    + + + + + + + + + + +E extends T + +
    +
    -function showPage() { - contentDiv.style.display = "flex"; - searchResultsDiv.style.display = "none"; -} +
    +
    + + + + + + + + + + +R = number + +
    +
    +
    +
    +

    + + + + + + + + + + +Call Signatures

    -function showSearchResults() { - contentDiv.style.display = "none"; - searchResultsDiv.style.display = "block"; -} +
    +
    (a: string): string + +
    +
    +
    +
    +

    + + + + + + + + + + +Properties

    -function renderResults(results) { - if (results.length === 0) { - searchResultsDiv.innerHTML = `No result`; - return; - } +
    +
    + + + + + + + + + + +world: string = "foo" + +
    +
    - let html = `
    +
    - for (const result of results) { - const kind = result.kind.map((kind) => { - return `
    ${kind.char}
    `; - }).join(""); +
    +
    +
    - html += `
  • - -
    -
    - ${kind} -
    - ${result.name} -
    +
  • `; - } +x: { [foo: string]: number; } + +
    +
    +
    +
    - html += ``; - searchResultsDiv.innerHTML = html; -} +
    +
    optional
    +
    + + + + + + + + + + +optionalMethod(): [string] + +
    +
    -function searchInIndex(val) { - return fuse.search(val).map((result) => result.item); -} +
    +
    optional
    +
    + + + + + + + + + + +[computedMethod](a: T extends () => infer R ? R : any): void + +
    +
    +
    +
    + +
    +
    +

    Usage

    import { type Hello } from ".";
    +
    +
    +
    +
    + + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-4.snap b/tests/snapshots/html_test__html_doc_files_rewrite-4.snap index 071e34c0..70e26278 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-4.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-4.snap @@ -1,5 +1,5 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-40.snap b/tests/snapshots/html_test__html_doc_files_rewrite-40.snap index f31cf613..b7edcd5c 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-40.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-40.snap @@ -2,6 +2,123 @@ source: tests/html_test.rs expression: files.get(file_name).unwrap() --- -(function () { - window.DENO_DOC_SEARCH_INDEX = {"nodes":[{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"A","file":".","doc":"","url":"././~/A.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"B","file":".","doc":"","url":"././~/B.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"Bar","file":".","doc":"> Some quote in bar docs\n> This quote part is ignored\n> when getting the title of this doc\n\nBar docs","url":"././~/Bar.html","deprecated":false},{"kind":[{"char":"T","kind":"TypeAlias","title":"Type Alias"}],"name":"Baz","file":".","doc":"","url":"././~/Baz.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Baz.foo","file":".","doc":"","url":"././~/Baz.foo.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"Foo","file":".","doc":"some Foo docs {@linkcode Bar}\n","url":"././~/Foo.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.test","file":".","doc":"","url":"././~/Foo.prototype.test.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.bar","file":".","doc":"","url":"././~/Foo.bar.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.prototype.foo","file":".","doc":"","url":"././~/Foo.prototype.foo.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.prototype.\"><img src=x onerror=alert(1)>","file":".","doc":"","url":"././~/Foo.prototype.\">.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"Foobar","file":".","doc":"```ts\n// This code block is ignored when getting the title of this doc\nconst foobar = new Foobar();\n```\n\nFoobar docs\n","url":"././~/Foobar.html","deprecated":false},{"kind":[{"char":"I","kind":"Interface","title":"Interface"}],"name":"Hello","file":".","doc":"","url":"././~/Hello.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Hello.world","file":".","doc":"","url":"././~/Hello.world.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"},{"char":"N","kind":"Namespace","title":"Namespace"}],"name":"Testing","file":".","doc":"","url":"././~/Testing.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"Testing.t","file":".","doc":"","url":"././~/Testing.t.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"c","file":".","doc":"","url":"././~/c.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"d","file":".","doc":"","url":"././~/d.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"}],"name":"qaz","file":".","doc":"","url":"././~/qaz.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"Testing.x","file":"c","doc":"","url":"./c/~/Testing.x.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"}],"name":"x","file":"c","doc":"","url":"./c/~/x.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"Testing.externalFunction","file":"d","doc":"","url":"./d/~/Testing.externalFunction.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"externalFunction","file":"d","doc":"","url":"./d/~/externalFunction.html","deprecated":false},{"kind":[{"char":"v","kind":"Variable","title":"Variable"}],"name":"default","file":"foo","doc":"The default export item.\n\nThis item reproduces the issue reported in {@link https://github.com/jsr-io/jsr/issues/459}","url":"./foo/~/default.html","deprecated":false}]}; -})() + + + + Hello.optionalMethod - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { type Hello } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-41.snap b/tests/snapshots/html_test__html_doc_files_rewrite-41.snap new file mode 100644 index 00000000..70485176 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-41.snap @@ -0,0 +1,100 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + Hello.test - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { type Hello } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-42.snap b/tests/snapshots/html_test__html_doc_files_rewrite-42.snap new file mode 100644 index 00000000..2525d205 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-42.snap @@ -0,0 +1,99 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + Hello.world - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { type Hello } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-43.snap b/tests/snapshots/html_test__html_doc_files_rewrite-43.snap new file mode 100644 index 00000000..1cf53b3b --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-43.snap @@ -0,0 +1,116 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + Hello.x - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { type Hello } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-44.snap b/tests/snapshots/html_test__html_doc_files_rewrite-44.snap new file mode 100644 index 00000000..9890c4d2 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-44.snap @@ -0,0 +1,116 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + InterfaceWithIndexSignature - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { type InterfaceWithIndexSignature } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-45.snap b/tests/snapshots/html_test__html_doc_files_rewrite-45.snap new file mode 100644 index 00000000..5f1a6613 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-45.snap @@ -0,0 +1,180 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + Testing.externalFunction - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { Testing } from ".";
    +const { externalFunction } = Testing;
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-46.snap b/tests/snapshots/html_test__html_doc_files_rewrite-46.snap new file mode 100644 index 00000000..f2b13e57 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-46.snap @@ -0,0 +1,116 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + Testing - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    + class Testing +
    +
    +
    +
    +
    +

    Usage

    import { Testing } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-47.snap b/tests/snapshots/html_test__html_doc_files_rewrite-47.snap new file mode 100644 index 00000000..1f543d84 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-47.snap @@ -0,0 +1,5 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-48.snap b/tests/snapshots/html_test__html_doc_files_rewrite-48.snap new file mode 100644 index 00000000..fda35787 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-48.snap @@ -0,0 +1,124 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + Testing.t - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { Testing } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-49.snap b/tests/snapshots/html_test__html_doc_files_rewrite-49.snap new file mode 100644 index 00000000..408584c1 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-49.snap @@ -0,0 +1,180 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + Testing.x - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { Testing } from ".";
    +const { x } = Testing;
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-5.snap b/tests/snapshots/html_test__html_doc_files_rewrite-5.snap index 33117ae4..805a7045 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-5.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-5.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - B - documentation + AbstractClass - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
    • B
    +
    • AbstractClass
    -
    +
    - class B -
    Private
    -
    + class AbstractClass +
    +
    +

    + + + + + + + + + + +Properties

    + +
    +
    abstract
    +
    + + + + + + + + + + +foo: string + +
    +
    + +
    +
    abstract
    +
    readonly
    +
    + + + + + + + + + + +getter: string + +
    +
    +
    +
    + +
    +
    abstract
    +
    optional
    +
    + + + + + + + + + + +method(s: number | string): s is string + +
    +
    +
    -

    Usage

    import { B } from ".";
    -
    -
    +
    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-50.snap b/tests/snapshots/html_test__html_doc_files_rewrite-50.snap new file mode 100644 index 00000000..6f2a08c9 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-50.snap @@ -0,0 +1,99 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + TypeAlias - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { type TypeAlias } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-51.snap b/tests/snapshots/html_test__html_doc_files_rewrite-51.snap new file mode 100644 index 00000000..c14cd630 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-51.snap @@ -0,0 +1,124 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + anotherVariable.bar - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { anotherVariable } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-52.snap b/tests/snapshots/html_test__html_doc_files_rewrite-52.snap new file mode 100644 index 00000000..8055b0af --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-52.snap @@ -0,0 +1,99 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + anotherVariable.foo - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { anotherVariable } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-53.snap b/tests/snapshots/html_test__html_doc_files_rewrite-53.snap new file mode 100644 index 00000000..e93d03d3 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-53.snap @@ -0,0 +1,174 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + anotherVariable - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { anotherVariable } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-6.snap b/tests/snapshots/html_test__html_doc_files_rewrite-6.snap index 797228af..dc49a9c3 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-6.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-6.snap @@ -1,5 +1,99 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- - + + + + AbstractClass.prototype.foo - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    + property AbstractClass.prototype.foo +
    +
    + +
    +
    string + +
    +
    +
    +
    +
    +
    +
    +

    Usage

    import { AbstractClass } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-7.snap b/tests/snapshots/html_test__html_doc_files_rewrite-7.snap index 530b5eb3..23dd0ed9 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-7.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-7.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Bar - documentation + AbstractClass.prototype.getter - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> -
    • Bar
    + -
    +
    - class Bar -
    - extends Foo -
    -

    Some quote in bar docs -This quote part is ignored -when getting the title of this doc

    -
    -

    Bar docs

    + method AbstractClass.prototype.getter +
    + + + + + + + + + + + +AbstractClass.prototype.getter(): string +
    +
    +

    + + + + + + + + + + +Return Type

    + +
    +
    string + +
    +
    +
    -

    Usage

    import { Bar } from ".";
    -
    -
    +
    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-8.snap b/tests/snapshots/html_test__html_doc_files_rewrite-8.snap index 2c441d4e..57697401 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-8.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-8.snap @@ -1,5 +1,5 @@ --- source: tests/html_test.rs -expression: files.get(file_name).unwrap() +expression: files.get(name).unwrap() --- - + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-9.snap b/tests/snapshots/html_test__html_doc_files_rewrite-9.snap index 5fb084a4..0ec8d138 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite-9.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite-9.snap @@ -5,7 +5,7 @@ expression: files.get(file_name).unwrap() - Baz.foo - documentation + AbstractClass.prototype.method - documentation @@ -27,7 +27,7 @@ expression: files.get(file_name).unwrap() xmlns="http://www.w3.org/2000/svg"> - + -
    diff --git a/tests/snapshots/html_test__html_doc_files_rewrite.snap b/tests/snapshots/html_test__html_doc_files_rewrite.snap index eddbbc6c..471a67d1 100644 --- a/tests/snapshots/html_test__html_doc_files_rewrite.snap +++ b/tests/snapshots/html_test__html_doc_files_rewrite.snap @@ -62,7 +62,17 @@ expression: files.get(file_name).unwrap() -default
    c
    +
    + AbstractClass + +
    No documentation available
    +
    v
    +
    + anotherVariable + +
    No documentation available
    +
    c
    Bar @@ -72,7 +82,7 @@ expression: files.get(file_name).unwrap()
    Baz -
    No documentation available
    +
    No documentation available
    f
    c @@ -82,28 +92,58 @@ expression: files.get(file_name).unwrap()
    d +
    No documentation available
    +
    I
    +
    + EmptyInterface + +
    No documentation available
    +
    E
    +
    + Enum + +
    No documentation available
    +
    E
    +
    + Enum2 +
    No documentation available
    c
    Foobar

    Foobar docs

    +
    f
    +
    + functionWithOptionalParameters + +
    No documentation available
    I
    Hello -
    No documentation available
    +
    No documentation available
    +
    I
    +
    + InterfaceWithIndexSignature + +
    No documentation available
    f
    qaz +
    No documentation available
    +
    v
    +
    + someVariable +
    No documentation available
    c
    N
    @@ -114,6 +154,11 @@ expression: files.get(file_name).unwrap()
    Testing.t +
    No documentation available
    +
    T
    +
    + TypeAlias +
    No documentation available
    diff --git a/tests/snapshots/html_test__symbol_group.snap b/tests/snapshots/html_test__symbol_group.snap index 78b7d4c9..87a9b853 100644 --- a/tests/snapshots/html_test__symbol_group.snap +++ b/tests/snapshots/html_test__symbol_group.snap @@ -248,7 +248,7 @@ expression: files null, { "html_head_ctx": { - "title": "B - documentation", + "title": "AbstractClass - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -261,7 +261,7 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "B", + "name": "AbstractClass", "symbols": [ { "kind": { @@ -272,11 +272,7 @@ expression: files "title_plural": "Classes" }, "usage": null, - "tags": [ - { - "kind": "private" - } - ], + "tags": [], "subtitle": { "kind": "class", "value": { @@ -290,7 +286,92 @@ expression: files "value": { "id": "", "docs": null, - "sections": [] + "sections": [ + { + "header": { + "title": "Properties", + "anchor": { + "id": "properties" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "property_foo", + "name": "foo", + "name_href": "../././~/AbstractClass.prototype.foo.html", + "content": ": string", + "anchor": { + "id": "property_foo" + }, + "tags": [ + { + "kind": "abstract" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "accessor_getter", + "name": "getter", + "name_href": "../././~/AbstractClass.prototype.getter.html", + "content": ": string", + "anchor": { + "id": "accessor_getter" + }, + "tags": [ + { + "kind": "abstract" + }, + { + "kind": "readonly" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Methods", + "anchor": { + "id": "methods" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "method_method_0", + "name": "method", + "name_href": "../././~/AbstractClass.prototype.method.html", + "content": "(s: number | string): s is string", + "anchor": { + "id": "method_method_0" + }, + "tags": [ + { + "kind": "abstract" + }, + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + } + ] } } ], @@ -308,8 +389,8 @@ expression: files "is_first_symbol": false }, { - "name": "B", - "href": "../././~/B.html", + "name": "AbstractClass", + "href": "../././~/AbstractClass.html", "is_symbol": true, "is_first_symbol": true } @@ -320,7 +401,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { B } from ".";\n
    \n
    ", + "content": "
    import { AbstractClass } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -328,7 +409,7 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": null + "document_navigation": "" }, "disable_search": false, "categories_panel": null @@ -336,7 +417,7 @@ expression: files null, { "html_head_ctx": { - "title": "Bar - documentation", + "title": "B - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -349,7 +430,7 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Bar", + "name": "B", "symbols": [ { "kind": { @@ -360,16 +441,16 @@ expression: files "title_plural": "Classes" }, "usage": null, - "tags": [], + "tags": [ + { + "kind": "private" + } + ], "subtitle": { "kind": "class", "value": { "implements": null, - "extends": { - "href": "../././~/Foo.html", - "symbol": "Foo", - "type_args": "" - } + "extends": null } }, "content": [ @@ -377,7 +458,7 @@ expression: files "kind": "other", "value": { "id": "", - "docs": "
    \n

    Some quote in bar docs\nThis quote part is ignored\nwhen getting the title of this doc

    \n
    \n

    Bar docs

    \n
    ", + "docs": null, "sections": [] } } @@ -396,8 +477,8 @@ expression: files "is_first_symbol": false }, { - "name": "Bar", - "href": "../././~/Bar.html", + "name": "B", + "href": "../././~/B.html", "is_symbol": true, "is_first_symbol": true } @@ -408,7 +489,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Bar } from ".";\n
    \n
    ", + "content": "
    import { B } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -424,7 +505,7 @@ expression: files null, { "html_head_ctx": { - "title": "Baz - documentation", + "title": "Bar - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -437,54 +518,36 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Baz", + "name": "Bar", "symbols": [ { "kind": { - "kind": "TypeAlias", - "char": "T", - "title": "Type Alias", - "title_lowercase": "type alias", - "title_plural": "Type Aliases" + "kind": "Class", + "char": "c", + "title": "Class", + "title_lowercase": "class", + "title_plural": "Classes" }, "usage": null, "tags": [], - "subtitle": null, + "subtitle": { + "kind": "class", + "value": { + "implements": null, + "extends": { + "href": "../././~/Foo.html", + "symbol": "Foo", + "type_args": "<string>" + } + } + }, "content": [ { "kind": "other", "value": { "id": "", - "docs": null, - "sections": [ - { - "header": { - "title": "Properties", - "anchor": { - "id": "properties" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "property_foo", - "name": "foo", - "name_href": "../././~/Baz.foo.html", - "content": ": string", - "anchor": { - "id": "property_foo" - }, - "tags": [], - "js_doc": null, - "source_href": null - } - ] - } - } - ] + "docs": "
    \n

    Some quote in bar docs\nThis quote part is ignored\nwhen getting the title of this doc

    \n
    \n

    Bar docs

    \n
    ", + "sections": [] } } ], @@ -502,8 +565,8 @@ expression: files "is_first_symbol": false }, { - "name": "Baz", - "href": "../././~/Baz.html", + "name": "Bar", + "href": "../././~/Bar.html", "is_symbol": true, "is_first_symbol": true } @@ -514,7 +577,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { type Baz } from ".";\n
    \n
    ", + "content": "
    import { Bar } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -522,14 +585,15 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": null }, "disable_search": false, "categories_panel": null }, + null, { "html_head_ctx": { - "title": "Foo - documentation", + "title": "Baz - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -542,61 +606,49 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Foo", + "name": "Baz", "symbols": [ { "kind": { - "kind": "Class", - "char": "c", - "title": "Class", - "title_lowercase": "class", - "title_plural": "Classes" + "kind": "TypeAlias", + "char": "T", + "title": "Type Alias", + "title_lowercase": "type alias", + "title_plural": "Type Aliases" }, "usage": null, "tags": [], - "subtitle": { - "kind": "class", - "value": { - "implements": null, - "extends": null - } - }, + "subtitle": null, "content": [ { "kind": "other", "value": { "id": "", - "docs": "

    some Foo docs Bar

    \n
    ", + "docs": null, "sections": [ { "header": { - "title": "Examples", + "title": "Type Parameters", "anchor": { - "id": "examples" + "id": "type-parameters" }, "href": null, "doc": null }, "content": { - "kind": "example", + "kind": "doc_entry", "content": [ { + "id": "type_param_t", + "name": "T", + "name_href": null, + "content": "", "anchor": { - "id": "example_0" - }, - "id": "example_0", - "title": "test", - "markdown_title": "

    test

    \n
    ", - "markdown_body": "

    hello

    \n

    bar

    \n
    foo\n
    \n

    baz

    \n
    " - }, - { - "anchor": { - "id": "example_1" + "id": "type_param_t" }, - "id": "example_1", - "title": "test 2", - "markdown_title": "

    test 2

    \n
    ", - "markdown_body": "

    hello

    \n

    bar

    \n
    foo\n
    \n

    baz

    \n
    " + "tags": [], + "js_doc": null, + "source_href": null } ] } @@ -613,23 +665,11 @@ expression: files "content": { "kind": "doc_entry", "content": [ - { - "id": "property_quotgtltimg-srcx-onerroralert1gt", - "name": "\"><img src=x onerror=alert(1)>", - "name_href": "../././~/Foo.prototype.\">.html", - "content": ": number", - "anchor": { - "id": "property_quotgtltimg-srcx-onerroralert1gt" - }, - "tags": [], - "js_doc": null, - "source_href": null - }, { "id": "property_foo", "name": "foo", - "name_href": "../././~/Foo.prototype.foo.html", - "content": ": A", + "name_href": "../././~/Baz.foo.html", + "content": ": Record<string, T extends string ? 0 : 1>", "anchor": { "id": "property_foo" }, @@ -653,39 +693,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "method_test_0", - "name": "test", - "name_href": "../././~/Foo.prototype.test.html", - "content": "(): void", + "id": "methods_bar_0", + "name": "bar", + "name_href": "../././~/Baz.bar.html", + "content": "(): InterfaceWithIndexSignature[\"test\"]", "anchor": { - "id": "method_test_0" - }, - "tags": [], - "js_doc": null, - "source_href": null - } - ] - } - }, - { - "header": { - "title": "Static Properties", - "anchor": { - "id": "static-properties" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "property_bar", - "name": "bar", - "name_href": "../././~/Foo.bar.html", - "content": ": \"string\"", - "anchor": { - "id": "property_bar" + "id": "methods_bar_0" }, "tags": [], "js_doc": null, @@ -712,8 +725,8 @@ expression: files "is_first_symbol": false }, { - "name": "Foo", - "href": "../././~/Foo.html", + "name": "Baz", + "href": "../././~/Baz.html", "is_symbol": true, "is_first_symbol": true } @@ -724,7 +737,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Foo } from ".";\n
    \n
    ", + "content": "
    import { type Baz } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -732,15 +745,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, - null, { "html_head_ctx": { - "title": "Foobar - documentation", + "title": "EmptyInterface - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -753,49 +765,26 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Foobar", + "name": "EmptyInterface", "symbols": [ { "kind": { - "kind": "Class", - "char": "c", - "title": "Class", - "title_lowercase": "class", - "title_plural": "Classes" + "kind": "Interface", + "char": "I", + "title": "Interface", + "title_lowercase": "interface", + "title_plural": "Interfaces" }, "usage": null, "tags": [], - "subtitle": { - "kind": "class", - "value": { - "implements": null, - "extends": null - } - }, + "subtitle": null, "content": [ { "kind": "other", "value": { "id": "", - "docs": "
    // This code block is ignored when getting the title of this doc\nconst foobar = new Foobar();\n
    \n

    Foobar docs

    \n
    ", - "sections": [ - { - "header": { - "title": "See", - "anchor": { - "id": "see" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "see", - "content": [ - "" - ] - } - } - ] + "docs": null, + "sections": [] } } ], @@ -813,8 +802,8 @@ expression: files "is_first_symbol": false }, { - "name": "Foobar", - "href": "../././~/Foobar.html", + "name": "EmptyInterface", + "href": "../././~/EmptyInterface.html", "is_symbol": true, "is_first_symbol": true } @@ -825,7 +814,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import Foobar from ".";\n
    \n
    ", + "content": "
    import { type EmptyInterface } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -833,15 +822,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": null }, "disable_search": false, "categories_panel": null }, - null, { "html_head_ctx": { - "title": "Hello - documentation", + "title": "Enum - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -854,15 +842,15 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Hello", + "name": "Enum", "symbols": [ { "kind": { - "kind": "Interface", - "char": "I", - "title": "Interface", - "title_lowercase": "interface", - "title_plural": "Interfaces" + "kind": "Enum", + "char": "E", + "title": "Enum", + "title_lowercase": "enum", + "title_plural": "Enums" }, "usage": null, "tags": [], @@ -876,9 +864,9 @@ expression: files "sections": [ { "header": { - "title": "Properties", + "title": "Members", "anchor": { - "id": "properties" + "id": "members" }, "href": null, "doc": null @@ -887,12 +875,24 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "property_world", - "name": "world", - "name_href": "../././~/Hello.world.html", - "content": ": \"string\"", + "id": "enum_enum_bar", + "name": "Bar", + "name_href": null, + "content": " = \"bar\"", "anchor": { - "id": "property_world" + "id": "enum_enum_bar" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "enum_enum_foo", + "name": "Foo", + "name_href": null, + "content": " = \"foo\"", + "anchor": { + "id": "enum_enum_foo" }, "tags": [], "js_doc": null, @@ -919,8 +919,8 @@ expression: files "is_first_symbol": false }, { - "name": "Hello", - "href": "../././~/Hello.html", + "name": "Enum", + "href": "../././~/Enum.html", "is_symbol": true, "is_first_symbol": true } @@ -931,7 +931,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { type Hello } from ".";\n
    \n
    ", + "content": "
    import { Enum } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -939,14 +939,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "Testing - documentation", + "title": "Enum2 - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -959,45 +959,15 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Testing", + "name": "Enum2", "symbols": [ { "kind": { - "kind": "Class", - "char": "c", - "title": "Class", - "title_lowercase": "class", - "title_plural": "Classes" - }, - "usage": null, - "tags": [], - "subtitle": { - "kind": "class", - "value": { - "implements": null, - "extends": null - } - }, - "content": [ - { - "kind": "other", - "value": { - "id": "", - "docs": null, - "sections": [] - } - } - ], - "deprecated": null, - "source_href": null - }, - { - "kind": { - "kind": "Namespace", - "char": "N", - "title": "Namespace", - "title_lowercase": "namespace", - "title_plural": "Namespaces" + "kind": "Enum", + "char": "E", + "title": "Enum", + "title_lowercase": "enum", + "title_plural": "Enums" }, "usage": null, "tags": [], @@ -1011,78 +981,39 @@ expression: files "sections": [ { "header": { - "title": "Functions", + "title": "Members", "anchor": { - "id": "Functions" + "id": "members" }, "href": null, "doc": null }, "content": { - "kind": "namespace_section", + "kind": "doc_entry", "content": [ { - "id": "namespace_testing_externalfunction", - "anchor": { - "id": "namespace_testing_externalfunction" - }, - "tags": [], - "doc_node_kind_ctx": [ - { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" - } - ], - "href": ".././d/~/Testing.externalFunction.html", - "name": "Testing.externalFunction", - "docs": null, - "deprecated": false, - "subitems": [] - }, - { - "id": "namespace_testing_t", + "id": "enum_enum2_bar", + "name": "Bar", + "name_href": null, + "content": "", "anchor": { - "id": "namespace_testing_t" + "id": "enum_enum2_bar" }, "tags": [], - "doc_node_kind_ctx": [ - { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" - } - ], - "href": "../././~/Testing.t.html", - "name": "Testing.t", - "docs": null, - "deprecated": false, - "subitems": [] + "js_doc": null, + "source_href": null }, { - "id": "namespace_testing_x", + "id": "enum_enum2_foo", + "name": "Foo", + "name_href": null, + "content": "", "anchor": { - "id": "namespace_testing_x" + "id": "enum_enum2_foo" }, "tags": [], - "doc_node_kind_ctx": [ - { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" - } - ], - "href": ".././c/~/Testing.x.html", - "name": "Testing.x", - "docs": null, - "deprecated": false, - "subitems": [] + "js_doc": null, + "source_href": null } ] } @@ -1105,8 +1036,8 @@ expression: files "is_first_symbol": false }, { - "name": "Testing", - "href": "../././~/Testing.html", + "name": "Enum2", + "href": "../././~/Enum2.html", "is_symbol": true, "is_first_symbol": true } @@ -1117,7 +1048,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Testing } from ".";\n
    \n
    ", + "content": "
    import { Enum2 } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -1125,15 +1056,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, - null, { "html_head_ctx": { - "title": "Testing.externalFunction - documentation", + "title": "Foo - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -1146,56 +1076,2781 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Testing.externalFunction", + "name": "Foo", "symbols": [ { "kind": { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" + "kind": "Class", + "char": "c", + "title": "Class", + "title_lowercase": "class", + "title_plural": "Classes" }, "usage": null, "tags": [], - "subtitle": null, + "subtitle": { + "kind": "class", + "value": { + "implements": null, + "extends": null + } + }, "content": [ { - "kind": "function", + "kind": "other", "value": { - "functions": [ + "id": "", + "docs": "

    some Foo docs Bar

    \n
    ", + "sections": [ { - "id": "function_externalFunction_0", - "anchor": { - "id": "function_externalFunction_0" + "header": { + "title": "Examples", + "anchor": { + "id": "examples" + }, + "href": null, + "doc": null }, - "name": "externalFunction", - "summary": "(_n?: number): void", - "deprecated": null, "content": { - "id": "", - "docs": null, - "sections": [ + "kind": "example", + "content": [ { - "header": { - "title": "Parameters", - "anchor": { - "id": "parameters" - }, - "href": null, - "doc": null + "anchor": { + "id": "example_0" }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "function_externalfunction_0_parameters__n", - "name": "_n", - "name_href": null, - "content": ": number = 0", - "anchor": { - "id": "function_externalfunction_0_parameters__n" - }, + "id": "example_0", + "title": "test", + "markdown_title": "

    test

    \n
    ", + "markdown_body": "

    hello

    \n

    bar

    \n
    foo\n
    \n

    baz

    \n
    " + }, + { + "anchor": { + "id": "example_1" + }, + "id": "example_1", + "title": "test 2", + "markdown_title": "

    test 2

    \n
    ", + "markdown_body": "

    hello

    \n

    bar

    \n
    foo\n
    \n

    baz

    \n
    " + } + ] + } + }, + { + "header": { + "title": "Constructors", + "anchor": { + "id": "constructors" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "constructor_0", + "name": "Foo", + "name_href": null, + "content": "(value: T)", + "anchor": { + "id": "constructor_0" + }, + "tags": [ + { + "kind": "new" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Type Parameters", + "anchor": { + "id": "type-parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "type_param_t", + "name": "T", + "name_href": null, + "content": "", + "anchor": { + "id": "type_param_t" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Properties", + "anchor": { + "id": "properties" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "property_quotgtltimg-srcx-onerroralert1gt", + "name": "\"><img src=x onerror=alert(1)>", + "name_href": "../././~/Foo.prototype.\">.html", + "content": ": number", + "anchor": { + "id": "property_quotgtltimg-srcx-onerroralert1gt" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "property_foo", + "name": "foo", + "name_href": "../././~/Foo.prototype.foo.html", + "content": ": A", + "anchor": { + "id": "property_foo" + }, + "tags": [ + { + "kind": "abstract" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "accessor_getterandsetter", + "name": "getterAndSetter", + "name_href": "../././~/Foo.prototype.getterAndSetter.html", + "content": "", + "anchor": { + "id": "accessor_getterandsetter" + }, + "tags": [ + { + "kind": "writeonly" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "accessor_getter", + "name": "getter", + "name_href": "../././~/Foo.prototype.getter.html", + "content": "", + "anchor": { + "id": "accessor_getter" + }, + "tags": [ + { + "kind": "protected" + }, + { + "kind": "readonly" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "property_protectedproperty", + "name": "protectedProperty", + "name_href": "../././~/Foo.prototype.protectedProperty.html", + "content": ": boolean", + "anchor": { + "id": "property_protectedproperty" + }, + "tags": [ + { + "kind": "protected" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "property_readonlyproperty", + "name": "readonlyProperty", + "name_href": "../././~/Foo.prototype.readonlyProperty.html", + "content": ": boolean", + "anchor": { + "id": "property_readonlyproperty" + }, + "tags": [ + { + "kind": "readonly" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "accessor_setter", + "name": "setter", + "name_href": "../././~/Foo.prototype.setter.html", + "content": ": string", + "anchor": { + "id": "accessor_setter" + }, + "tags": [ + { + "kind": "writeonly" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "accessor_getterandsetter-1", + "name": "getterAndSetter", + "name_href": "../././~/Foo.prototype.getterAndSetter.html", + "content": "", + "anchor": { + "id": "accessor_getterandsetter-1" + }, + "tags": [ + { + "kind": "readonly" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Methods", + "anchor": { + "id": "methods" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "method_symbol_iterator_0", + "name": "[Symbol.iterator]", + "name_href": "../././~/Foo.prototype.[Symbol.iterator].html", + "content": "(): void", + "anchor": { + "id": "method_symbol_iterator_0" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "method_methodwithoverloads_0", + "name": "methodWithOverloads", + "name_href": "../././~/Foo.prototype.methodWithOverloads.html", + "content": "(s: number): void", + "anchor": { + "id": "method_methodwithoverloads_0" + }, + "tags": [ + { + "kind": "private" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "method_methodwithoverloads_1", + "name": "methodWithOverloads", + "name_href": "../././~/Foo.prototype.methodWithOverloads.html", + "content": "(s: string): void", + "anchor": { + "id": "method_methodwithoverloads_1" + }, + "tags": [ + { + "kind": "private" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "method_test_0", + "name": "test", + "name_href": "../././~/Foo.prototype.test.html", + "content": "(): void", + "anchor": { + "id": "method_test_0" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Static Properties", + "anchor": { + "id": "static-properties" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "property_bar", + "name": "bar", + "name_href": "../././~/Foo.bar.html", + "content": ": \"string\"", + "anchor": { + "id": "property_bar" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "accessor_staticsetter", + "name": "staticSetter", + "name_href": "../././~/Foo.staticSetter.html", + "content": ": number", + "anchor": { + "id": "accessor_staticsetter" + }, + "tags": [ + { + "kind": "writeonly" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Static Methods", + "anchor": { + "id": "static-methods" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "method_staticmethod_0", + "name": "staticMethod", + "name_href": "../././~/Foo.staticMethod.html", + "content": "(): void", + "anchor": { + "id": "method_staticmethod_0" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + null, + { + "html_head_ctx": { + "title": "Foobar - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foobar", + "symbols": [ + { + "kind": { + "kind": "Class", + "char": "c", + "title": "Class", + "title_lowercase": "class", + "title_plural": "Classes" + }, + "usage": null, + "tags": [], + "subtitle": { + "kind": "class", + "value": { + "implements": null, + "extends": null + } + }, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": "
    // This code block is ignored when getting the title of this doc\nconst foobar = new Foobar();\n
    \n

    Foobar docs

    \n

    \nheading

    \n

    content

    \n

    \nsub heading

    \n
    ", + "sections": [ + { + "header": { + "title": "See", + "anchor": { + "id": "see" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "see", + "content": [ + "" + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foobar", + "href": "../././~/Foobar.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import Foobar from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + null, + { + "html_head_ctx": { + "title": "Hello - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Hello", + "symbols": [ + { + "kind": { + "kind": "Interface", + "char": "I", + "title": "Interface", + "title_lowercase": "interface", + "title_plural": "Interfaces" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type Parameters", + "anchor": { + "id": "type-parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "type_param_t", + "name": "T", + "name_href": null, + "content": " extends string", + "anchor": { + "id": "type_param_t" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "type_param_e", + "name": "E", + "name_href": null, + "content": " extends T", + "anchor": { + "id": "type_param_e" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "type_param_r", + "name": "R", + "name_href": null, + "content": " = number", + "anchor": { + "id": "type_param_r" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Call Signatures", + "anchor": { + "id": "call-signatures" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "call_signature_0", + "name": null, + "name_href": null, + "content": "(a: string): string", + "anchor": { + "id": "call_signature_0" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Properties", + "anchor": { + "id": "properties" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "property_world", + "name": "world", + "name_href": "../././~/Hello.world.html", + "content": ": string = \"foo\"", + "anchor": { + "id": "property_world" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "property_test", + "name": "test", + "name_href": "../././~/Hello.test.html", + "content": ": \"test\"", + "anchor": { + "id": "property_test" + }, + "tags": [ + { + "kind": "readonly" + }, + { + "kind": "optional" + } + ], + "js_doc": "

    Some docs

    \n
    ", + "source_href": null + }, + { + "id": "property_ab", + "name": "[ab]", + "name_href": "../././~/Hello.ab.html", + "content": ": string", + "anchor": { + "id": "property_ab" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "property_x", + "name": "x", + "name_href": "../././~/Hello.x.html", + "content": ": { [foo: string]: number; }", + "anchor": { + "id": "property_x" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Methods", + "anchor": { + "id": "methods" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "methods_optionalmethod_0", + "name": "optionalMethod", + "name_href": "../././~/Hello.optionalMethod.html", + "content": "(): [string]", + "anchor": { + "id": "methods_optionalmethod_0" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "methods_computedmethod_1", + "name": "[computedMethod]", + "name_href": "../././~/Hello.computedMethod.html", + "content": "(a: T extends () => infer R ? R : any): void", + "anchor": { + "id": "methods_computedmethod_1" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Hello", + "href": "../././~/Hello.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { type Hello } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "InterfaceWithIndexSignature - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "InterfaceWithIndexSignature", + "symbols": [ + { + "kind": { + "kind": "Interface", + "char": "I", + "title": "Interface", + "title_lowercase": "interface", + "title_plural": "Interfaces" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Index Signatures", + "anchor": { + "id": "index-signatures" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "index_signature", + "content": [ + { + "id": "index_signature_0", + "anchor": { + "id": "index_signature_0" + }, + "readonly": false, + "params": "foo: string", + "ts_type": ": `foo${string}` |
    (Foobar)
    & number
    & this
    ", + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "InterfaceWithIndexSignature", + "href": "../././~/InterfaceWithIndexSignature.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { type InterfaceWithIndexSignature } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Testing - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Testing", + "symbols": [ + { + "kind": { + "kind": "Class", + "char": "c", + "title": "Class", + "title_lowercase": "class", + "title_plural": "Classes" + }, + "usage": null, + "tags": [], + "subtitle": { + "kind": "class", + "value": { + "implements": null, + "extends": null + } + }, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [] + } + } + ], + "deprecated": null, + "source_href": null + }, + { + "kind": { + "kind": "Namespace", + "char": "N", + "title": "Namespace", + "title_lowercase": "namespace", + "title_plural": "Namespaces" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Functions", + "anchor": { + "id": "Functions" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "namespace_section", + "content": [ + { + "id": "namespace_testing_externalfunction", + "anchor": { + "id": "namespace_testing_externalfunction" + }, + "tags": [], + "doc_node_kind_ctx": [ + { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + } + ], + "href": ".././d/~/Testing.externalFunction.html", + "name": "Testing.externalFunction", + "docs": null, + "deprecated": false, + "subitems": [] + }, + { + "id": "namespace_testing_t", + "anchor": { + "id": "namespace_testing_t" + }, + "tags": [], + "doc_node_kind_ctx": [ + { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + } + ], + "href": "../././~/Testing.t.html", + "name": "Testing.t", + "docs": null, + "deprecated": false, + "subitems": [] + }, + { + "id": "namespace_testing_x", + "anchor": { + "id": "namespace_testing_x" + }, + "tags": [], + "doc_node_kind_ctx": [ + { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + } + ], + "href": ".././c/~/Testing.x.html", + "name": "Testing.x", + "docs": null, + "deprecated": false, + "subitems": [] + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Testing", + "href": "../././~/Testing.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Testing } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + null, + { + "html_head_ctx": { + "title": "Testing.externalFunction - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Testing.externalFunction", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_externalFunction_0", + "anchor": { + "id": "function_externalFunction_0" + }, + "name": "externalFunction", + "summary": "(_n?: number): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_externalfunction_0_parameters__n", + "name": "_n", + "name_href": null, + "content": ": number = 0", + "anchor": { + "id": "function_externalfunction_0_parameters__n" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_externalFunction_0_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_externalFunction_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Testing", + "href": "../././~/Testing.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "externalFunction", + "href": "../././~/Testing.externalFunction.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Testing } from ".";\nconst { externalFunction } = Testing;\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Testing.t - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Testing.t", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_t_0", + "anchor": { + "id": "function_t_0" + }, + "name": "t", + "summary": "(): string", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_t_0_return", + "name": null, + "name_href": null, + "content": "string", + "anchor": { + "id": "function_t_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Testing", + "href": "../././~/Testing.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "t", + "href": "../././~/Testing.t.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Testing } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Testing.x - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Testing.x", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_x_0", + "anchor": { + "id": "function_x_0" + }, + "name": "x", + "summary": "(_n?: number): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_x_0_parameters__n", + "name": "_n", + "name_href": null, + "content": ": number = 0", + "anchor": { + "id": "function_x_0_parameters__n" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_x_0_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_x_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Testing", + "href": "../././~/Testing.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "x", + "href": "../././~/Testing.x.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Testing } from ".";\nconst { x } = Testing;\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "TypeAlias - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "TypeAlias", + "symbols": [ + { + "kind": { + "kind": "TypeAlias", + "char": "T", + "title": "Type Alias", + "title_lowercase": "type alias", + "title_plural": "Type Aliases" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Definition", + "anchor": { + "id": "definition" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "typeAlias_TypeAlias", + "name": null, + "name_href": null, + "content": "string", + "anchor": { + "id": "typeAlias_TypeAlias" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "TypeAlias", + "href": "../././~/TypeAlias.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { type TypeAlias } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "anotherVariable - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "anotherVariable", + "symbols": [ + { + "kind": { + "kind": "Variable", + "char": "v", + "title": "Variable", + "title_lowercase": "variable", + "title_plural": "Variables" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Properties", + "anchor": { + "id": "properties" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "property_foo", + "name": "foo", + "name_href": "../././~/anotherVariable.foo.html", + "content": ": string", + "anchor": { + "id": "property_foo" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Methods", + "anchor": { + "id": "methods" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "methods_bar_0", + "name": "bar", + "name_href": "../././~/anotherVariable.bar.html", + "content": "(): number", + "anchor": { + "id": "methods_bar_0" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "anotherVariable", + "href": "../././~/anotherVariable.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { anotherVariable } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "c - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "c", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_c_0", + "anchor": { + "id": "function_c_0" + }, + "name": "c", + "summary": "(): string", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_c_0_return", + "name": null, + "name_href": null, + "content": "string", + "anchor": { + "id": "function_c_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "c", + "href": "../././~/c.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { c } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "d - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "d", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_d_0", + "anchor": { + "id": "function_d_0" + }, + "name": "d", + "summary": "<T = string>(
    foo?: number,
    bar?: string,
    baz?: { hello?: string; },
    qaz: T,
    ...strings: string[],
    ): string", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Examples", + "anchor": { + "id": "examples" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "example", + "content": [ + { + "anchor": { + "id": "example_0" + }, + "id": "example_0", + "title": "test\n", + "markdown_title": "

    test

    \n
    ", + "markdown_body": "
    d();\n
    \n
    " + }, + { + "anchor": { + "id": "example_1" + }, + "id": "example_1", + "title": "Example 2", + "markdown_title": "

    Example 2

    \n
    ", + "markdown_body": "
    d();\n
    \n
    " + } + ] + } + }, + { + "header": { + "title": "Type Parameters", + "anchor": { + "id": "type-parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "type_param_t", + "name": "T", + "name_href": null, + "content": " = string", + "anchor": { + "id": "type_param_t" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_d_0_parameters_foo", + "name": "foo", + "name_href": null, + "content": ": number = 1", + "anchor": { + "id": "function_d_0_parameters_foo" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": "

    {number} some parameter

    \n
    ", + "source_href": null + }, + { + "id": "function_d_0_parameters_bar", + "name": "bar", + "name_href": null, + "content": ": string = bar", + "anchor": { + "id": "function_d_0_parameters_bar" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "function_d_0_parameters_baz", + "name": "baz", + "name_href": null, + "content": ": { hello?: string; }", + "anchor": { + "id": "function_d_0_parameters_baz" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "function_d_0_parameters_qaz", + "name": "qaz", + "name_href": null, + "content": ": T", + "anchor": { + "id": "function_d_0_parameters_qaz" + }, + "tags": [], + "js_doc": null, + "source_href": null + }, + { + "id": "function_d_0_parameters____strings", + "name": "...strings", + "name_href": null, + "content": ": string[]", + "anchor": { + "id": "function_d_0_parameters____strings" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_d_0_return", + "name": null, + "name_href": null, + "content": "string", + "anchor": { + "id": "function_d_0_return" + }, + "tags": [], + "js_doc": "

    a new string

    \n
    ", + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Throws", + "anchor": { + "id": "throws" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_d_0_throws_0", + "name": null, + "name_href": null, + "content": "Foo", + "anchor": { + "id": "function_d_0_throws_0" + }, + "tags": [], + "js_doc": "

    bar

    \n
    ", + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "d", + "href": "../././~/d.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { d } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "functionWithOptionalParameters - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "functionWithOptionalParameters", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_functionWithOptionalParameters_0", + "anchor": { + "id": "function_functionWithOptionalParameters_0" + }, + "name": "functionWithOptionalParameters", + "summary": "(
    foo?: number,
    bar?: number,
    baz?: [number],
    unnamed 3?: string[],
    unnamed 4?: { qux: number; },
    ): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_functionwithoptionalparameters_0_parameters_foo", + "name": "foo", + "name_href": null, + "content": ": number = 1", + "anchor": { + "id": "function_functionwithoptionalparameters_0_parameters_foo" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "function_functionwithoptionalparameters_0_parameters_bar", + "name": "bar", + "name_href": null, + "content": ": number", + "anchor": { + "id": "function_functionwithoptionalparameters_0_parameters_bar" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "function_functionwithoptionalparameters_0_parameters_baz", + "name": "baz", + "name_href": null, + "content": ": [number]", + "anchor": { + "id": "function_functionwithoptionalparameters_0_parameters_baz" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "function_functionwithoptionalparameters_0_parameters_unnamed-3", + "name": "unnamed 3", + "name_href": null, + "content": ": string[]", + "anchor": { + "id": "function_functionwithoptionalparameters_0_parameters_unnamed-3" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + }, + { + "id": "function_functionwithoptionalparameters_0_parameters_unnamed-4", + "name": "unnamed 4", + "name_href": null, + "content": ": { qux: number; }", + "anchor": { + "id": "function_functionwithoptionalparameters_0_parameters_unnamed-4" + }, + "tags": [ + { + "kind": "optional" + } + ], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_functionWithOptionalParameters_0_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_functionWithOptionalParameters_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Throws", + "anchor": { + "id": "throws" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_functionWithOptionalParameters_0_throws_0", + "name": null, + "name_href": null, + "content": "", + "anchor": { + "id": "function_functionWithOptionalParameters_0_throws_0" + }, + "tags": [], + "js_doc": "

    bar

    \n
    ", + "source_href": null + } + ] + } + }, + { + "header": { + "title": "See", + "anchor": { + "id": "see" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "see", + "content": [ + "" + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "functionWithOptionalParameters", + "href": "../././~/functionWithOptionalParameters.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { functionWithOptionalParameters } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "qaz - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "qaz", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_qaz_0", + "anchor": { + "id": "function_qaz_0" + }, + "name": "qaz", + "summary": "(a: string)", + "deprecated": "

    content

    \n
    ", + "content": { + "id": "", + "docs": "

    content

    \n
    ", + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_qaz_0_parameters_a", + "name": "a", + "name_href": null, + "content": ": string", + "anchor": { + "id": "function_qaz_0_parameters_a" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [] + } + } + ] + } + }, + { + "id": "function_qaz_1", + "anchor": { + "id": "function_qaz_1" + }, + "name": "qaz", + "summary": "(a: number)", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters-1" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_qaz_1_parameters_a", + "name": "a", + "name_href": null, + "content": ": number", + "anchor": { + "id": "function_qaz_1_parameters_a" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type-1" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "qaz", + "href": "../././~/qaz.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { qaz } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "someVariable - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "someVariable", + "symbols": [ + { + "kind": { + "kind": "Variable", + "char": "v", + "title": "Variable", + "title_lowercase": "variable", + "title_plural": "Variables" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "someVariable", + "href": "../././~/someVariable.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { someVariable } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": null + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "x - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "x", + "symbols": [ + { + "kind": { + "kind": "Function", + "char": "f", + "title": "Function", + "title_lowercase": "function", + "title_plural": "Functions" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_x_0", + "anchor": { + "id": "function_x_0" + }, + "name": "x", + "summary": "(_n?: number): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_x_0_parameters__n", + "name": "_n", + "name_href": null, + "content": ": number = 0", + "anchor": { + "id": "function_x_0_parameters__n" + }, "tags": [ { "kind": "optional" @@ -1208,31 +3863,1919 @@ expression: files } }, { - "header": { - "title": "Return Type", - "anchor": { - "id": "return-type" - }, - "href": null, - "doc": null + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_x_0_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_x_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "x", + "href": "../././~/x.html", + "is_symbol": true, + "is_first_symbol": true + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { x } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "AbstractClass.prototype.foo - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "AbstractClass.prototype.foo", + "symbols": [ + { + "kind": { + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "variable_AbstractClass_prototype_foo", + "name": null, + "name_href": null, + "content": "string", + "anchor": { + "id": "variable_AbstractClass_prototype_foo" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "AbstractClass", + "href": "../././~/AbstractClass.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/AbstractClass.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "foo", + "href": "../././~/AbstractClass.prototype.foo.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { AbstractClass } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "AbstractClass.prototype.getter - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "AbstractClass.prototype.getter", + "symbols": [ + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_AbstractClass_prototype_getter_0", + "anchor": { + "id": "function_AbstractClass_prototype_getter_0" + }, + "name": "AbstractClass.prototype.getter", + "summary": "(): string", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_AbstractClass_prototype_getter_0_return", + "name": null, + "name_href": null, + "content": "string", + "anchor": { + "id": "function_AbstractClass_prototype_getter_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "AbstractClass", + "href": "../././~/AbstractClass.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/AbstractClass.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "getter", + "href": "../././~/AbstractClass.prototype.getter.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { AbstractClass } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "AbstractClass.prototype.method - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "AbstractClass.prototype.method", + "symbols": [ + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_AbstractClass_prototype_method_0", + "anchor": { + "id": "function_AbstractClass_prototype_method_0" + }, + "name": "AbstractClass.prototype.method", + "summary": "(s: number | string): s is string", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_abstractclass_prototype_method_0_parameters_s", + "name": "s", + "name_href": null, + "content": ": number | string", + "anchor": { + "id": "function_abstractclass_prototype_method_0_parameters_s" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_AbstractClass_prototype_method_0_return", + "name": null, + "name_href": null, + "content": "s is string", + "anchor": { + "id": "function_AbstractClass_prototype_method_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "AbstractClass", + "href": "../././~/AbstractClass.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/AbstractClass.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "method", + "href": "../././~/AbstractClass.prototype.method.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { AbstractClass } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Baz.bar - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Baz.bar", + "symbols": [ + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_Baz_bar_0", + "anchor": { + "id": "function_Baz_bar_0" + }, + "name": "Baz.bar", + "summary": "(): InterfaceWithIndexSignature[\"test\"]", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_Baz_bar_0_return", + "name": null, + "name_href": null, + "content": "InterfaceWithIndexSignature[\"test\"]", + "anchor": { + "id": "function_Baz_bar_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Baz", + "href": "../././~/Baz.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "bar", + "href": "../././~/Baz.bar.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { type Baz } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Baz.foo - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Baz.foo", + "symbols": [ + { + "kind": { + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "variable_Baz_foo", + "name": null, + "name_href": null, + "content": "Record<string, T extends string ? 0 : 1>", + "anchor": { + "id": "variable_Baz_foo" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Baz", + "href": "../././~/Baz.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "foo", + "href": "../././~/Baz.foo.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { type Baz } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.bar - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.bar", + "symbols": [ + { + "kind": { + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "variable_Foo_bar", + "name": null, + "name_href": null, + "content": "\"string\"", + "anchor": { + "id": "variable_Foo_bar" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "bar", + "href": "../././~/Foo.bar.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.\"> - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.\">", + "symbols": [ + { + "kind": { + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "variable_Foo_prototype_"><img src=x onerror=alert(1)>", + "name": null, + "name_href": null, + "content": "number", + "anchor": { + "id": "variable_Foo_prototype_"><img src=x onerror=alert(1)>" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "\">", + "href": "../././~/Foo.prototype.\">.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.[Symbol.iterator] - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.[Symbol.iterator]", + "symbols": [ + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_Foo_prototype_[Symbol_iterator]_0", + "anchor": { + "id": "function_Foo_prototype_[Symbol_iterator]_0" + }, + "name": "Foo.prototype.[Symbol.iterator]", + "summary": "(): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_Foo_prototype_[Symbol_iterator]_0_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_Foo_prototype_[Symbol_iterator]_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "[Symbol.iterator]", + "href": "../././~/Foo.prototype.[Symbol.iterator].html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.foo - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.foo", + "symbols": [ + { + "kind": { + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "variable_Foo_prototype_foo", + "name": null, + "name_href": null, + "content": "A", + "anchor": { + "id": "variable_Foo_prototype_foo" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "foo", + "href": "../././~/Foo.prototype.foo.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.getter - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.getter", + "symbols": [ + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_Foo_prototype_getter_0", + "anchor": { + "id": "function_Foo_prototype_getter_0" + }, + "name": "Foo.prototype.getter", + "summary": "()", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "getter", + "href": "../././~/Foo.prototype.getter.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.getterAndSetter - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.getterAndSetter", + "symbols": [ + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_Foo_prototype_getterAndSetter_0", + "anchor": { + "id": "function_Foo_prototype_getterAndSetter_0" + }, + "name": "Foo.prototype.getterAndSetter", + "summary": "()", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + }, + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_Foo_prototype_getterAndSetter_0", + "anchor": { + "id": "function_Foo_prototype_getterAndSetter_0" + }, + "name": "Foo.prototype.getterAndSetter", + "summary": "(s): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_foo_prototype_getterandsetter_0_parameters_s", + "name": "s", + "name_href": null, + "content": "", + "anchor": { + "id": "function_foo_prototype_getterandsetter_0_parameters_s" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type-1" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_Foo_prototype_getterAndSetter_0_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_Foo_prototype_getterAndSetter_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "getterAndSetter", + "href": "../././~/Foo.prototype.getterAndSetter.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.methodWithOverloads - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.methodWithOverloads", + "symbols": [ + { + "kind": { + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "function", + "value": { + "functions": [ + { + "id": "function_Foo_prototype_methodWithOverloads_0", + "anchor": { + "id": "function_Foo_prototype_methodWithOverloads_0" + }, + "name": "Foo.prototype.methodWithOverloads", + "summary": "(s: number): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_foo_prototype_methodwithoverloads_0_parameters_s", + "name": "s", + "name_href": null, + "content": ": number", + "anchor": { + "id": "function_foo_prototype_methodwithoverloads_0_parameters_s" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_Foo_prototype_methodWithOverloads_0_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_Foo_prototype_methodWithOverloads_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + }, + { + "id": "function_Foo_prototype_methodWithOverloads_1", + "anchor": { + "id": "function_Foo_prototype_methodWithOverloads_1" + }, + "name": "Foo.prototype.methodWithOverloads", + "summary": "(s: string): void", + "deprecated": null, + "content": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters-1" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_foo_prototype_methodwithoverloads_1_parameters_s", + "name": "s", + "name_href": null, + "content": ": string", + "anchor": { + "id": "function_foo_prototype_methodwithoverloads_1_parameters_s" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, + { + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type-1" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_Foo_prototype_methodWithOverloads_1_return", + "name": null, + "name_href": null, + "content": "void", + "anchor": { + "id": "function_Foo_prototype_methodWithOverloads_1_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "methodWithOverloads", + "href": "../././~/Foo.prototype.methodWithOverloads.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.protectedProperty - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.protectedProperty", + "symbols": [ + { + "kind": { + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "variable_Foo_prototype_protectedProperty", + "name": null, + "name_href": null, + "content": "boolean", + "anchor": { + "id": "variable_Foo_prototype_protectedProperty" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + } + ] + } + } + ], + "deprecated": null, + "source_href": null + } + ] + }, + "breadcrumbs_ctx": { + "parts": [ + { + "name": "index", + "href": "../", + "is_symbol": false, + "is_first_symbol": false + }, + { + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "protectedProperty", + "href": "../././~/Foo.prototype.protectedProperty.html", + "is_symbol": true, + "is_first_symbol": false + } + ] + }, + "toc_ctx": { + "usages": { + "usages": [ + { + "name": "", + "content": "
    import { Foo } from ".";\n
    \n
    ", + "icon": null, + "additional_css": "" + } + ], + "composed": false + }, + "top_symbols": null, + "document_navigation": "" + }, + "disable_search": false, + "categories_panel": null + }, + { + "html_head_ctx": { + "title": "Foo.prototype.readonlyProperty - documentation", + "current_file": ".", + "stylesheet_url": "../styles.css", + "page_stylesheet_url": "../page.css", + "reset_stylesheet_url": "../reset.css", + "url_search_index": "../search_index.js", + "script_js": "../script.js", + "fuse_js": "../fuse.js", + "url_search": "../search.js", + "head_inject": null, + "disable_search": false + }, + "symbol_group_ctx": { + "name": "Foo.prototype.readonlyProperty", + "symbols": [ + { + "kind": { + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" + }, + "usage": null, + "tags": [], + "subtitle": null, + "content": [ + { + "kind": "other", + "value": { + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "variable_Foo_prototype_readonlyProperty", + "name": null, + "name_href": null, + "content": "boolean", + "anchor": { + "id": "variable_Foo_prototype_readonlyProperty" }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "function_externalFunction_0_return", - "name": null, - "name_href": null, - "content": "void", - "anchor": { - "id": "function_externalFunction_0_return" - }, - "tags": [], - "js_doc": null, - "source_href": null - } - ] - } + "tags": [], + "js_doc": null, + "source_href": null } ] } @@ -1255,14 +5798,20 @@ expression: files "is_first_symbol": false }, { - "name": "Testing", - "href": "../././~/Testing.html", + "name": "Foo", + "href": "../././~/Foo.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "externalFunction", - "href": "../././~/Testing.externalFunction.html", + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "readonlyProperty", + "href": "../././~/Foo.prototype.readonlyProperty.html", "is_symbol": true, "is_first_symbol": false } @@ -1273,7 +5822,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Testing } from ".";\nconst { externalFunction } = Testing;\n
    \n
    ", + "content": "
    import { Foo } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -1281,14 +5830,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "Testing.t - documentation", + "title": "Foo.prototype.setter - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -1301,15 +5850,15 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Testing.t", + "name": "Foo.prototype.setter", "symbols": [ { "kind": { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" }, "usage": null, "tags": [], @@ -1320,17 +5869,44 @@ expression: files "value": { "functions": [ { - "id": "function_t_0", + "id": "function_Foo_prototype_setter_0", "anchor": { - "id": "function_t_0" + "id": "function_Foo_prototype_setter_0" }, - "name": "t", - "summary": "(): string", + "name": "Foo.prototype.setter", + "summary": "(s: string): void", "deprecated": null, "content": { "id": "", "docs": null, "sections": [ + { + "header": { + "title": "Parameters", + "anchor": { + "id": "parameters" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_foo_prototype_setter_0_parameters_s", + "name": "s", + "name_href": null, + "content": ": string", + "anchor": { + "id": "function_foo_prototype_setter_0_parameters_s" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } + }, { "header": { "title": "Return Type", @@ -1344,12 +5920,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_t_0_return", + "id": "function_Foo_prototype_setter_0_return", "name": null, "name_href": null, - "content": "string", + "content": "void", "anchor": { - "id": "function_t_0_return" + "id": "function_Foo_prototype_setter_0_return" }, "tags": [], "js_doc": null, @@ -1379,14 +5955,20 @@ expression: files "is_first_symbol": false }, { - "name": "Testing", - "href": "../././~/Testing.html", + "name": "Foo", + "href": "../././~/Foo.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "t", - "href": "../././~/Testing.t.html", + "name": "prototype", + "href": "../././~/Foo.prototype.html", + "is_symbol": true, + "is_first_symbol": false + }, + { + "name": "setter", + "href": "../././~/Foo.prototype.setter.html", "is_symbol": true, "is_first_symbol": false } @@ -1397,7 +5979,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Testing } from ".";\n
    \n
    ", + "content": "
    import { Foo } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -1405,14 +5987,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "Testing.x - documentation", + "title": "Foo.prototype.test - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -1425,15 +6007,15 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Testing.x", + "name": "Foo.prototype.test", "symbols": [ { "kind": { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" }, "usage": null, "tags": [], @@ -1444,48 +6026,17 @@ expression: files "value": { "functions": [ { - "id": "function_x_0", + "id": "function_Foo_prototype_test_0", "anchor": { - "id": "function_x_0" + "id": "function_Foo_prototype_test_0" }, - "name": "x", - "summary": "(_n?: number): void", + "name": "Foo.prototype.test", + "summary": "(): void", "deprecated": null, "content": { "id": "", "docs": null, "sections": [ - { - "header": { - "title": "Parameters", - "anchor": { - "id": "parameters" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "function_x_0_parameters__n", - "name": "_n", - "name_href": null, - "content": ": number = 0", - "anchor": { - "id": "function_x_0_parameters__n" - }, - "tags": [ - { - "kind": "optional" - } - ], - "js_doc": null, - "source_href": null - } - ] - } - }, { "header": { "title": "Return Type", @@ -1499,12 +6050,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_x_0_return", + "id": "function_Foo_prototype_test_0_return", "name": null, "name_href": null, "content": "void", "anchor": { - "id": "function_x_0_return" + "id": "function_Foo_prototype_test_0_return" }, "tags": [], "js_doc": null, @@ -1534,14 +6085,20 @@ expression: files "is_first_symbol": false }, { - "name": "Testing", - "href": "../././~/Testing.html", + "name": "Foo", + "href": "../././~/Foo.html", + "is_symbol": true, + "is_first_symbol": true + }, + { + "name": "prototype", + "href": "../././~/Foo.prototype.html", "is_symbol": true, - "is_first_symbol": true + "is_first_symbol": false }, { - "name": "x", - "href": "../././~/Testing.x.html", + "name": "test", + "href": "../././~/Foo.prototype.test.html", "is_symbol": true, "is_first_symbol": false } @@ -1552,7 +6109,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Testing } from ".";\nconst { x } = Testing;\n
    \n
    ", + "content": "
    import { Foo } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -1560,14 +6117,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "c - documentation", + "title": "Foo.staticMethod - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -1580,15 +6137,15 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "c", + "name": "Foo.staticMethod", "symbols": [ { "kind": { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" }, "usage": null, "tags": [], @@ -1599,12 +6156,12 @@ expression: files "value": { "functions": [ { - "id": "function_c_0", + "id": "function_Foo_staticMethod_0", "anchor": { - "id": "function_c_0" + "id": "function_Foo_staticMethod_0" }, - "name": "c", - "summary": "(): string", + "name": "Foo.staticMethod", + "summary": "(): void", "deprecated": null, "content": { "id": "", @@ -1623,12 +6180,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_c_0_return", + "id": "function_Foo_staticMethod_0_return", "name": null, "name_href": null, - "content": "string", + "content": "void", "anchor": { - "id": "function_c_0_return" + "id": "function_Foo_staticMethod_0_return" }, "tags": [], "js_doc": null, @@ -1658,10 +6215,16 @@ expression: files "is_first_symbol": false }, { - "name": "c", - "href": "../././~/c.html", + "name": "Foo", + "href": "../././~/Foo.html", "is_symbol": true, "is_first_symbol": true + }, + { + "name": "staticMethod", + "href": "../././~/Foo.staticMethod.html", + "is_symbol": true, + "is_first_symbol": false } ] }, @@ -1670,7 +6233,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { c } from ".";\n
    \n
    ", + "content": "
    import { Foo } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -1685,7 +6248,7 @@ expression: files }, { "html_head_ctx": { - "title": "d - documentation", + "title": "Foo.staticSetter - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -1698,15 +6261,15 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "d", + "name": "Foo.staticSetter", "symbols": [ { "kind": { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" }, "usage": null, "tags": [], @@ -1717,12 +6280,12 @@ expression: files "value": { "functions": [ { - "id": "function_d_0", + "id": "function_Foo_staticSetter_0", "anchor": { - "id": "function_d_0" + "id": "function_Foo_staticSetter_0" }, - "name": "d", - "summary": "(
    foo?: number,
    bar?: string,
    baz?: { hello?: string; },
    ): string", + "name": "Foo.staticSetter", + "summary": "(s: number): void", "deprecated": null, "content": { "id": "", @@ -1741,50 +6304,14 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_d_0_parameters_foo", - "name": "foo", - "name_href": null, - "content": ": number = 1", - "anchor": { - "id": "function_d_0_parameters_foo" - }, - "tags": [ - { - "kind": "optional" - } - ], - "js_doc": null, - "source_href": null - }, - { - "id": "function_d_0_parameters_bar", - "name": "bar", - "name_href": null, - "content": ": string = bar", - "anchor": { - "id": "function_d_0_parameters_bar" - }, - "tags": [ - { - "kind": "optional" - } - ], - "js_doc": null, - "source_href": null - }, - { - "id": "function_d_0_parameters_baz", - "name": "baz", + "id": "function_foo_staticsetter_0_parameters_s", + "name": "s", "name_href": null, - "content": ": { hello?: string; }", + "content": ": number", "anchor": { - "id": "function_d_0_parameters_baz" + "id": "function_foo_staticsetter_0_parameters_s" }, - "tags": [ - { - "kind": "optional" - } - ], + "tags": [], "js_doc": null, "source_href": null } @@ -1804,12 +6331,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_d_0_return", + "id": "function_Foo_staticSetter_0_return", "name": null, "name_href": null, - "content": "string", + "content": "void", "anchor": { - "id": "function_d_0_return" + "id": "function_Foo_staticSetter_0_return" }, "tags": [], "js_doc": null, @@ -1817,33 +6344,6 @@ expression: files } ] } - }, - { - "header": { - "title": "Throws", - "anchor": { - "id": "throws" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "function_d_0_throws_0", - "name": null, - "name_href": null, - "content": "Foo", - "anchor": { - "id": "function_d_0_throws_0" - }, - "tags": [], - "js_doc": "

    bar

    \n
    ", - "source_href": null - } - ] - } } ] } @@ -1866,10 +6366,16 @@ expression: files "is_first_symbol": false }, { - "name": "d", - "href": "../././~/d.html", + "name": "Foo", + "href": "../././~/Foo.html", "is_symbol": true, "is_first_symbol": true + }, + { + "name": "staticSetter", + "href": "../././~/Foo.staticSetter.html", + "is_symbol": true, + "is_first_symbol": false } ] }, @@ -1878,7 +6384,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { d } from ".";\n
    \n
    ", + "content": "
    import { Foo } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -1886,14 +6392,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "qaz - documentation", + "title": "Hello.ab - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -1906,132 +6412,49 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "qaz", + "name": "Hello.ab", "symbols": [ { "kind": { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" + "kind": "Property", + "char": "p", + "title": "Property", + "title_lowercase": "property", + "title_plural": "Properties" }, "usage": null, "tags": [], "subtitle": null, "content": [ { - "kind": "function", + "kind": "other", "value": { - "functions": [ - { - "id": "function_qaz_0", - "anchor": { - "id": "function_qaz_0" - }, - "name": "qaz", - "summary": "(a: string)", - "deprecated": "", - "content": { - "id": "", - "docs": null, - "sections": [ - { - "header": { - "title": "Parameters", - "anchor": { - "id": "parameters" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "function_qaz_0_parameters_a", - "name": "a", - "name_href": null, - "content": ": string", - "anchor": { - "id": "function_qaz_0_parameters_a" - }, - "tags": [], - "js_doc": null, - "source_href": null - } - ] - } - }, - { - "header": { - "title": "Return Type", - "anchor": { - "id": "return-type" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "doc_entry", - "content": [] - } - } - ] - } - }, - { - "id": "function_qaz_1", - "anchor": { - "id": "function_qaz_1" - }, - "name": "qaz", - "summary": "(a: number)", - "deprecated": null, - "content": { - "id": "", - "docs": null, - "sections": [ - { - "header": { - "title": "Parameters", - "anchor": { - "id": "parameters-1" - }, - "href": null, - "doc": null - }, - "content": { - "kind": "doc_entry", - "content": [ - { - "id": "function_qaz_1_parameters_a", - "name": "a", - "name_href": null, - "content": ": number", - "anchor": { - "id": "function_qaz_1_parameters_a" - }, - "tags": [], - "js_doc": null, - "source_href": null - } - ] - } - }, + "id": "", + "docs": null, + "sections": [ + { + "header": { + "title": "Type", + "anchor": { + "id": "type" + }, + "href": null, + "doc": null + }, + "content": { + "kind": "doc_entry", + "content": [ { - "header": { - "title": "Return Type", - "anchor": { - "id": "return-type-1" - }, - "href": null, - "doc": null + "id": "variable_Hello_ab", + "name": null, + "name_href": null, + "content": "string", + "anchor": { + "id": "variable_Hello_ab" }, - "content": { - "kind": "doc_entry", - "content": [] - } + "tags": [], + "js_doc": null, + "source_href": null } ] } @@ -2054,10 +6477,16 @@ expression: files "is_first_symbol": false }, { - "name": "qaz", - "href": "../././~/qaz.html", + "name": "Hello", + "href": "../././~/Hello.html", "is_symbol": true, "is_first_symbol": true + }, + { + "name": "ab", + "href": "../././~/Hello.ab.html", + "is_symbol": true, + "is_first_symbol": false } ] }, @@ -2066,7 +6495,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { qaz } from ".";\n
    \n
    ", + "content": "
    import { type Hello } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -2074,14 +6503,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "x - documentation", + "title": "Hello.computedMethod - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -2094,15 +6523,15 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "x", + "name": "Hello.computedMethod", "symbols": [ { "kind": { - "kind": "Function", - "char": "f", - "title": "Function", - "title_lowercase": "function", - "title_plural": "Functions" + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" }, "usage": null, "tags": [], @@ -2113,12 +6542,12 @@ expression: files "value": { "functions": [ { - "id": "function_x_0", + "id": "function_Hello_computedMethod_0", "anchor": { - "id": "function_x_0" + "id": "function_Hello_computedMethod_0" }, - "name": "x", - "summary": "(_n?: number): void", + "name": "Hello.computedMethod", + "summary": "(a: T extends () => infer R ? R : any): void", "deprecated": null, "content": { "id": "", @@ -2137,18 +6566,14 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_x_0_parameters__n", - "name": "_n", + "id": "function_hello_computedmethod_0_parameters_a", + "name": "a", "name_href": null, - "content": ": number = 0", + "content": ": T extends () => infer R ? R : any", "anchor": { - "id": "function_x_0_parameters__n" + "id": "function_hello_computedmethod_0_parameters_a" }, - "tags": [ - { - "kind": "optional" - } - ], + "tags": [], "js_doc": null, "source_href": null } @@ -2168,12 +6593,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_x_0_return", + "id": "function_Hello_computedMethod_0_return", "name": null, "name_href": null, "content": "void", "anchor": { - "id": "function_x_0_return" + "id": "function_Hello_computedMethod_0_return" }, "tags": [], "js_doc": null, @@ -2203,10 +6628,16 @@ expression: files "is_first_symbol": false }, { - "name": "x", - "href": "../././~/x.html", + "name": "Hello", + "href": "../././~/Hello.html", "is_symbol": true, "is_first_symbol": true + }, + { + "name": "computedMethod", + "href": "../././~/Hello.computedMethod.html", + "is_symbol": true, + "is_first_symbol": false } ] }, @@ -2215,7 +6646,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { x } from ".";\n
    \n
    ", + "content": "
    import { type Hello } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -2223,14 +6654,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "Baz.foo - documentation", + "title": "Hello.optionalMethod - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -2243,49 +6674,62 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Baz.foo", + "name": "Hello.optionalMethod", "symbols": [ { "kind": { - "kind": "Property", - "char": "p", - "title": "Property", - "title_lowercase": "property", - "title_plural": "Properties" + "kind": "Method", + "char": "m", + "title": "Method", + "title_lowercase": "method", + "title_plural": "Methods" }, "usage": null, "tags": [], "subtitle": null, "content": [ { - "kind": "other", + "kind": "function", "value": { - "id": "", - "docs": null, - "sections": [ + "functions": [ { - "header": { - "title": "Type", - "anchor": { - "id": "type" - }, - "href": null, - "doc": null + "id": "function_Hello_optionalMethod_0", + "anchor": { + "id": "function_Hello_optionalMethod_0" }, + "name": "Hello.optionalMethod", + "summary": "(): [string]", + "deprecated": null, "content": { - "kind": "doc_entry", - "content": [ + "id": "", + "docs": null, + "sections": [ { - "id": "variable_Baz_foo", - "name": null, - "name_href": null, - "content": "string", - "anchor": { - "id": "variable_Baz_foo" + "header": { + "title": "Return Type", + "anchor": { + "id": "return-type" + }, + "href": null, + "doc": null }, - "tags": [], - "js_doc": null, - "source_href": null + "content": { + "kind": "doc_entry", + "content": [ + { + "id": "function_Hello_optionalMethod_0_return", + "name": null, + "name_href": null, + "content": "[string]", + "anchor": { + "id": "function_Hello_optionalMethod_0_return" + }, + "tags": [], + "js_doc": null, + "source_href": null + } + ] + } } ] } @@ -2308,14 +6752,14 @@ expression: files "is_first_symbol": false }, { - "name": "Baz", - "href": "../././~/Baz.html", + "name": "Hello", + "href": "../././~/Hello.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "foo", - "href": "../././~/Baz.foo.html", + "name": "optionalMethod", + "href": "../././~/Hello.optionalMethod.html", "is_symbol": true, "is_first_symbol": false } @@ -2326,7 +6770,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { type Baz } from ".";\n
    \n
    ", + "content": "
    import { type Hello } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -2334,14 +6778,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "Foo.bar - documentation", + "title": "Hello.test - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -2354,7 +6798,7 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Foo.bar", + "name": "Hello.test", "symbols": [ { "kind": { @@ -2372,7 +6816,7 @@ expression: files "kind": "other", "value": { "id": "", - "docs": null, + "docs": "

    Some docs

    \n
    ", "sections": [ { "header": { @@ -2387,12 +6831,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "variable_Foo_bar", + "id": "variable_Hello_test", "name": null, "name_href": null, - "content": "\"string\"", + "content": "\"test\"", "anchor": { - "id": "variable_Foo_bar" + "id": "variable_Hello_test" }, "tags": [], "js_doc": null, @@ -2419,14 +6863,14 @@ expression: files "is_first_symbol": false }, { - "name": "Foo", - "href": "../././~/Foo.html", + "name": "Hello", + "href": "../././~/Hello.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "bar", - "href": "../././~/Foo.bar.html", + "name": "test", + "href": "../././~/Hello.test.html", "is_symbol": true, "is_first_symbol": false } @@ -2437,7 +6881,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Foo } from ".";\n
    \n
    ", + "content": "
    import { type Hello } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -2452,7 +6896,7 @@ expression: files }, { "html_head_ctx": { - "title": "Foo.prototype.\"> - documentation", + "title": "Hello.world - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -2465,7 +6909,7 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Foo.prototype.\">", + "name": "Hello.world", "symbols": [ { "kind": { @@ -2498,12 +6942,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "variable_Foo_prototype_"><img src=x onerror=alert(1)>", + "id": "variable_Hello_world", "name": null, "name_href": null, - "content": "number", + "content": "string", "anchor": { - "id": "variable_Foo_prototype_"><img src=x onerror=alert(1)>" + "id": "variable_Hello_world" }, "tags": [], "js_doc": null, @@ -2530,20 +6974,14 @@ expression: files "is_first_symbol": false }, { - "name": "Foo", - "href": "../././~/Foo.html", + "name": "Hello", + "href": "../././~/Hello.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "prototype", - "href": "../././~/Foo.prototype.html", - "is_symbol": true, - "is_first_symbol": false - }, - { - "name": "\">", - "href": "../././~/Foo.prototype.\">.html", + "name": "world", + "href": "../././~/Hello.world.html", "is_symbol": true, "is_first_symbol": false } @@ -2554,7 +6992,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Foo } from ".";\n
    \n
    ", + "content": "
    import { type Hello } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -2569,7 +7007,7 @@ expression: files }, { "html_head_ctx": { - "title": "Foo.prototype.foo - documentation", + "title": "Hello.x - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -2582,7 +7020,7 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Foo.prototype.foo", + "name": "Hello.x", "symbols": [ { "kind": { @@ -2604,26 +7042,24 @@ expression: files "sections": [ { "header": { - "title": "Type", + "title": "Index Signatures", "anchor": { - "id": "type" + "id": "index-signatures" }, "href": null, "doc": null }, "content": { - "kind": "doc_entry", + "kind": "index_signature", "content": [ { - "id": "variable_Foo_prototype_foo", - "name": null, - "name_href": null, - "content": "A", + "id": "index_signature_0", "anchor": { - "id": "variable_Foo_prototype_foo" + "id": "index_signature_0" }, - "tags": [], - "js_doc": null, + "readonly": false, + "params": "foo: string", + "ts_type": ": number", "source_href": null } ] @@ -2647,20 +7083,14 @@ expression: files "is_first_symbol": false }, { - "name": "Foo", - "href": "../././~/Foo.html", + "name": "Hello", + "href": "../././~/Hello.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "prototype", - "href": "../././~/Foo.prototype.html", - "is_symbol": true, - "is_first_symbol": false - }, - { - "name": "foo", - "href": "../././~/Foo.prototype.foo.html", + "name": "x", + "href": "../././~/Hello.x.html", "is_symbol": true, "is_first_symbol": false } @@ -2671,7 +7101,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Foo } from ".";\n
    \n
    ", + "content": "
    import { type Hello } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -2679,14 +7109,14 @@ expression: files "composed": false }, "top_symbols": null, - "document_navigation": "" + "document_navigation": "" }, "disable_search": false, "categories_panel": null }, { "html_head_ctx": { - "title": "Foo.prototype.test - documentation", + "title": "anotherVariable.bar - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -2699,7 +7129,7 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Foo.prototype.test", + "name": "anotherVariable.bar", "symbols": [ { "kind": { @@ -2718,12 +7148,12 @@ expression: files "value": { "functions": [ { - "id": "function_Foo_prototype_test_0", + "id": "function_anotherVariable_bar_0", "anchor": { - "id": "function_Foo_prototype_test_0" + "id": "function_anotherVariable_bar_0" }, - "name": "Foo.prototype.test", - "summary": "(): void", + "name": "anotherVariable.bar", + "summary": "(): number", "deprecated": null, "content": { "id": "", @@ -2742,12 +7172,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "function_Foo_prototype_test_0_return", + "id": "function_anotherVariable_bar_0_return", "name": null, "name_href": null, - "content": "void", + "content": "number", "anchor": { - "id": "function_Foo_prototype_test_0_return" + "id": "function_anotherVariable_bar_0_return" }, "tags": [], "js_doc": null, @@ -2777,20 +7207,14 @@ expression: files "is_first_symbol": false }, { - "name": "Foo", - "href": "../././~/Foo.html", + "name": "anotherVariable", + "href": "../././~/anotherVariable.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "prototype", - "href": "../././~/Foo.prototype.html", - "is_symbol": true, - "is_first_symbol": false - }, - { - "name": "test", - "href": "../././~/Foo.prototype.test.html", + "name": "bar", + "href": "../././~/anotherVariable.bar.html", "is_symbol": true, "is_first_symbol": false } @@ -2801,7 +7225,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { Foo } from ".";\n
    \n
    ", + "content": "
    import { anotherVariable } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } @@ -2816,7 +7240,7 @@ expression: files }, { "html_head_ctx": { - "title": "Hello.world - documentation", + "title": "anotherVariable.foo - documentation", "current_file": ".", "stylesheet_url": "../styles.css", "page_stylesheet_url": "../page.css", @@ -2829,7 +7253,7 @@ expression: files "disable_search": false }, "symbol_group_ctx": { - "name": "Hello.world", + "name": "anotherVariable.foo", "symbols": [ { "kind": { @@ -2862,12 +7286,12 @@ expression: files "kind": "doc_entry", "content": [ { - "id": "variable_Hello_world", + "id": "variable_anotherVariable_foo", "name": null, "name_href": null, - "content": "\"string\"", + "content": "string", "anchor": { - "id": "variable_Hello_world" + "id": "variable_anotherVariable_foo" }, "tags": [], "js_doc": null, @@ -2894,14 +7318,14 @@ expression: files "is_first_symbol": false }, { - "name": "Hello", - "href": "../././~/Hello.html", + "name": "anotherVariable", + "href": "../././~/anotherVariable.html", "is_symbol": true, "is_first_symbol": true }, { - "name": "world", - "href": "../././~/Hello.world.html", + "name": "foo", + "href": "../././~/anotherVariable.foo.html", "is_symbol": true, "is_first_symbol": false } @@ -2912,7 +7336,7 @@ expression: files "usages": [ { "name": "", - "content": "
    import { type Hello } from ".";\n
    \n
    ", + "content": "
    import { anotherVariable } from ".";\n
    \n
    ", "icon": null, "additional_css": "" } diff --git a/tests/snapshots/html_test__symbol_search.snap b/tests/snapshots/html_test__symbol_search.snap index a2ef0903..eff92a98 100644 --- a/tests/snapshots/html_test__symbol_search.snap +++ b/tests/snapshots/html_test__symbol_search.snap @@ -18,6 +18,62 @@ expression: search_index "url": "././~/A.html", "deprecated": false }, + { + "kind": [ + { + "char": "c", + "kind": "Class", + "title": "Class" + } + ], + "name": "AbstractClass", + "file": ".", + "doc": "", + "url": "././~/AbstractClass.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "AbstractClass.prototype.method", + "file": ".", + "doc": "", + "url": "././~/AbstractClass.prototype.method.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "AbstractClass.prototype.getter", + "file": ".", + "doc": "", + "url": "././~/AbstractClass.prototype.getter.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "p", + "kind": "Property", + "title": "Property" + } + ], + "name": "AbstractClass.prototype.foo", + "file": ".", + "doc": "", + "url": "././~/AbstractClass.prototype.foo.html", + "deprecated": false + }, { "kind": [ { @@ -60,6 +116,20 @@ expression: search_index "url": "././~/Baz.html", "deprecated": false }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Baz.bar", + "file": ".", + "doc": "", + "url": "././~/Baz.bar.html", + "deprecated": false + }, { "kind": [ { @@ -74,6 +144,48 @@ expression: search_index "url": "././~/Baz.foo.html", "deprecated": false }, + { + "kind": [ + { + "char": "I", + "kind": "Interface", + "title": "Interface" + } + ], + "name": "EmptyInterface", + "file": ".", + "doc": "", + "url": "././~/EmptyInterface.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "E", + "kind": "Enum", + "title": "Enum" + } + ], + "name": "Enum", + "file": ".", + "doc": "", + "url": "././~/Enum.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "E", + "kind": "Enum", + "title": "Enum" + } + ], + "name": "Enum2", + "file": ".", + "doc": "", + "url": "././~/Enum2.html", + "deprecated": false + }, { "kind": [ { @@ -88,6 +200,90 @@ expression: search_index "url": "././~/Foo.html", "deprecated": false }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.[Symbol.iterator]", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.[Symbol.iterator].html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.getter", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.getter.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.setter", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.setter.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.getterAndSetter", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.getterAndSetter.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.getterAndSetter", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.getterAndSetter.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.staticSetter", + "file": ".", + "doc": "", + "url": "././~/Foo.staticSetter.html", + "deprecated": false + }, { "kind": [ { @@ -102,6 +298,62 @@ expression: search_index "url": "././~/Foo.prototype.test.html", "deprecated": false }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.staticMethod", + "file": ".", + "doc": "", + "url": "././~/Foo.staticMethod.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.methodWithOverloads", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.methodWithOverloads.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.methodWithOverloads", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.methodWithOverloads.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Foo.prototype.methodWithOverloads", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.methodWithOverloads.html", + "deprecated": false + }, { "kind": [ { @@ -116,6 +368,34 @@ expression: search_index "url": "././~/Foo.bar.html", "deprecated": false }, + { + "kind": [ + { + "char": "p", + "kind": "Property", + "title": "Property" + } + ], + "name": "Foo.prototype.protectedProperty", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.protectedProperty.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "p", + "kind": "Property", + "title": "Property" + } + ], + "name": "Foo.prototype.readonlyProperty", + "file": ".", + "doc": "", + "url": "././~/Foo.prototype.readonlyProperty.html", + "deprecated": false + }, { "kind": [ { @@ -154,7 +434,7 @@ expression: search_index ], "name": "Foobar", "file": ".", - "doc": "```ts\n// This code block is ignored when getting the title of this doc\nconst foobar = new Foobar();\n```\n\nFoobar docs\n", + "doc": "```ts\n// This code block is ignored when getting the title of this doc\nconst foobar = new Foobar();\n```\n\nFoobar docs\n\n# heading\n\ncontent\n\n## sub heading\n", "url": "././~/Foobar.html", "deprecated": false }, @@ -172,6 +452,34 @@ expression: search_index "url": "././~/Hello.html", "deprecated": false }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Hello.optionalMethod", + "file": ".", + "doc": "", + "url": "././~/Hello.optionalMethod.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "Hello.computedMethod", + "file": ".", + "doc": "", + "url": "././~/Hello.computedMethod.html", + "deprecated": false + }, { "kind": [ { @@ -186,6 +494,62 @@ expression: search_index "url": "././~/Hello.world.html", "deprecated": false }, + { + "kind": [ + { + "char": "p", + "kind": "Property", + "title": "Property" + } + ], + "name": "Hello.test", + "file": ".", + "doc": "Some docs", + "url": "././~/Hello.test.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "p", + "kind": "Property", + "title": "Property" + } + ], + "name": "Hello.ab", + "file": ".", + "doc": "", + "url": "././~/Hello.ab.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "p", + "kind": "Property", + "title": "Property" + } + ], + "name": "Hello.x", + "file": ".", + "doc": "", + "url": "././~/Hello.x.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "I", + "kind": "Interface", + "title": "Interface" + } + ], + "name": "InterfaceWithIndexSignature", + "file": ".", + "doc": "", + "url": "././~/InterfaceWithIndexSignature.html", + "deprecated": false + }, { "kind": [ { @@ -219,6 +583,62 @@ expression: search_index "url": "././~/Testing.t.html", "deprecated": false }, + { + "kind": [ + { + "char": "T", + "kind": "TypeAlias", + "title": "Type Alias" + } + ], + "name": "TypeAlias", + "file": ".", + "doc": "", + "url": "././~/TypeAlias.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "v", + "kind": "Variable", + "title": "Variable" + } + ], + "name": "anotherVariable", + "file": ".", + "doc": "", + "url": "././~/anotherVariable.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "m", + "kind": "Method", + "title": "Method" + } + ], + "name": "anotherVariable.bar", + "file": ".", + "doc": "", + "url": "././~/anotherVariable.bar.html", + "deprecated": false + }, + { + "kind": [ + { + "char": "p", + "kind": "Property", + "title": "Property" + } + ], + "name": "anotherVariable.foo", + "file": ".", + "doc": "", + "url": "././~/anotherVariable.foo.html", + "deprecated": false + }, { "kind": [ { @@ -247,6 +667,20 @@ expression: search_index "url": "././~/d.html", "deprecated": false }, + { + "kind": [ + { + "char": "f", + "kind": "Function", + "title": "Function" + } + ], + "name": "functionWithOptionalParameters", + "file": ".", + "doc": "", + "url": "././~/functionWithOptionalParameters.html", + "deprecated": false + }, { "kind": [ { @@ -267,10 +701,24 @@ expression: search_index ], "name": "qaz", "file": ".", - "doc": "", + "doc": "content\n", "url": "././~/qaz.html", "deprecated": false }, + { + "kind": [ + { + "char": "v", + "kind": "Variable", + "title": "Variable" + } + ], + "name": "someVariable", + "file": ".", + "doc": "", + "url": "././~/someVariable.html", + "deprecated": false + }, { "kind": [ { diff --git a/tests/testdata/multiple/a.ts b/tests/testdata/multiple/a.ts index 19efbf1e..c03cbdc8 100644 --- a/tests/testdata/multiple/a.ts +++ b/tests/testdata/multiple/a.ts @@ -5,6 +5,7 @@ import { externalFunction } from "./_d.ts"; * Some docs * with a line break * + * @deprecated * @module */ @@ -35,11 +36,41 @@ import { externalFunction } from "./_d.ts"; * * baz */ -export class Foo { +export class Foo { + constructor(value: T) {} + static bar: "string"; - foo: A = A; + protected protectedProperty = false; + readonly readonlyProperty= false; + foo?: A = A; '">' = 0; + [Symbol.iterator]() {} + + protected get getter() { + return ""; + } + + set setter(s: string) { + } + + get getterAndSetter() { + return ""; + } + set getterAndSetter(s) { + } + + static set staticSetter(s: number) {} + + /** + * @throws + */ test() {} + + static staticMethod() {} + + private methodWithOverloads(s: number): void; + private methodWithOverloads(s: string): void; + private methodWithOverloads(s: number | string): void {} } /** @@ -49,7 +80,7 @@ export class Foo { * * Bar docs */ -export class Bar extends Foo { +export class Bar extends Foo { } /** @@ -60,26 +91,65 @@ export class Bar extends Foo { * * Foobar docs * + * # heading + * + * content + * + * ## sub heading + * * @see https://example.com */ export default class Foobar { } -export interface Hello { - world: "string"; +export abstract class AbstractClass { + abstract foo: string; + abstract method?(s: number | string): s is string; + abstract get getter(): string; +} + +export interface Hello { + (a: string): string; + /** + * @default {"foo"} + */ + world: string; + /** + * Some docs + */ + readonly test?: "test"; + ["ab"]: string; + new(): Hello; + optionalMethod?(): [string?]; + ["computedMethod"]?(a: T extends () => infer R ? R : any): void; + + x: { + [foo: string]: number; + } } -export type Baz = { - foo: string; +export interface EmptyInterface {} + +export interface InterfaceWithIndexSignature { + [foo: string]: `foo${string}` | (typeof Foobar) & number & this; +} + +export type Baz = { + foo: Record; + bar(): InterfaceWithIndexSignature["test"]; }; +export type TypeAlias = string; + class A {} /** @internal */ export class B {} /** - * @deprecated + * content + * + * @deprecated content */ export function qaz(a: string); export function qaz(a: number); @@ -88,16 +158,56 @@ export function qaz(a: string | number) {} export const c = (): string => "hello"; /** + * @param foo {number} some parameter + * @returns a new string * @throws {Foo} bar + * @example + * test + * ```ts + * d(); + * ``` + * @example + * ```ts + * d(); + * ``` */ -export function d( +export function d( foo: number = 1, bar: string = "bar", baz: { hello?: string } = {}, + qaz: T, + ...strings: string[] ): string { return foo + bar; } +/** + * @throws bar + * @see anotherVariable + */ +export function functionWithOptionalParameters( + foo: number = 1, + bar?: number, + baz?: [number], + [qaz]?: string[], + { qux }?: { qux: number }, +) { + +} + +export enum Enum { + Foo = "foo", + Bar = "bar", +} + +export enum Enum2 { + Foo, + Bar, +} + +export let someVariable; +export let anotherVariable: { foo: string; bar(): number }; + export class Testing {} Testing.x = x; From fe2f16f8de68c0362bfb32b4a8ff65bbb14131bc Mon Sep 17 00:00:00 2001 From: crowlkats Date: Tue, 17 Dec 2024 05:34:31 +0100 Subject: [PATCH 2/6] fix --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c8d7214..7f62cb1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,12 +72,15 @@ jobs: deno test --allow-read --allow-net --allow-env --allow-write - name: Install cargo-llvm-cov + if: contains(matrix.os, 'ubuntu') uses: taiki-e/install-action@cargo-llvm-cov - name: Generate code coverage + if: contains(matrix.os, 'ubuntu') run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info - name: Upload coverage to Codecov + if: contains(matrix.os, 'ubuntu') uses: codecov/codecov-action@v3 with: files: lcov.info From 91f19fa2fec9547f6b151b891c31d3692b7441bd Mon Sep 17 00:00:00 2001 From: crowlkats Date: Tue, 17 Dec 2024 05:35:09 +0100 Subject: [PATCH 3/6] fmt --- tests/testdata/multiple/a.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/testdata/multiple/a.ts b/tests/testdata/multiple/a.ts index c03cbdc8..dd951e9f 100644 --- a/tests/testdata/multiple/a.ts +++ b/tests/testdata/multiple/a.ts @@ -41,7 +41,7 @@ export class Foo { static bar: "string"; protected protectedProperty = false; - readonly readonlyProperty= false; + readonly readonlyProperty = false; foo?: A = A; '">' = 0; [Symbol.iterator]() {} @@ -119,13 +119,13 @@ export interface Hello { */ readonly test?: "test"; ["ab"]: string; - new(): Hello; + new (): Hello; optionalMethod?(): [string?]; ["computedMethod"]?(a: T extends () => infer R ? R : any): void; x: { [foo: string]: number; - } + }; } export interface EmptyInterface {} @@ -192,7 +192,6 @@ export function functionWithOptionalParameters( [qaz]?: string[], { qux }?: { qux: number }, ) { - } export enum Enum { From a6c4a7864e66d8f33763777f80ef9f5435d78fa6 Mon Sep 17 00:00:00 2001 From: crowlkats Date: Tue, 17 Dec 2024 05:40:42 +0100 Subject: [PATCH 4/6] add missing snapshots --- .../html_test__html_doc_files_rewrite-54.snap | 124 +++++ .../html_test__html_doc_files_rewrite-55.snap | 480 ++++++++++++++++++ .../html_test__html_doc_files_rewrite-56.snap | 353 +++++++++++++ .../html_test__html_doc_files_rewrite-57.snap | 277 ++++++++++ .../html_test__html_doc_files_rewrite-58.snap | 67 +++ .../html_test__html_doc_files_rewrite-59.snap | 178 +++++++ .../html_test__html_doc_files_rewrite-60.snap | 127 +++++ .../html_test__html_doc_files_rewrite-61.snap | 186 +++++++ .../html_test__html_doc_files_rewrite-62.snap | 127 +++++ .../html_test__html_doc_files_rewrite-63.snap | 186 +++++++ .../html_test__html_doc_files_rewrite-64.snap | 159 ++++++ .../html_test__html_doc_files_rewrite-65.snap | 109 ++++ .../html_test__html_doc_files_rewrite-66.snap | 186 +++++++ .../html_test__html_doc_files_rewrite-67.snap | 15 + .../html_test__html_doc_files_rewrite-68.snap | 39 ++ .../html_test__html_doc_files_rewrite-69.snap | 145 ++++++ .../html_test__html_doc_files_rewrite-70.snap | 7 + 17 files changed, 2765 insertions(+) create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-54.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-55.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-56.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-57.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-58.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-59.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-60.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-61.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-62.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-63.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-64.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-65.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-66.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-67.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-68.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-69.snap create mode 100644 tests/snapshots/html_test__html_doc_files_rewrite-70.snap diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-54.snap b/tests/snapshots/html_test__html_doc_files_rewrite-54.snap new file mode 100644 index 00000000..6add1e4e --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-54.snap @@ -0,0 +1,124 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + c - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { c } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-55.snap b/tests/snapshots/html_test__html_doc_files_rewrite-55.snap new file mode 100644 index 00000000..308e0759 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-55.snap @@ -0,0 +1,480 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + d - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    + function d +
    + + + + + + + + + + + +d<T = string>(
    foo?: number,
    bar?: string,
    baz?: { hello?: string; },
    qaz: T,
    ...strings: string[],
    ): string
    +
    +
    + + + + + + + + + + +

    test

    +

    +
    d();
    +
    +
    +
    +
    + + + + + + + + + + +

    Example 2

    +

    +
    d();
    +
    +
    +
    +
    +
    +
    +

    + + + + + + + + + + +Type Parameters

    + +
    +
    + + + + + + + + + + +T = string + +
    +
    +
    +
    +

    + + + + + + + + + + +Parameters

    + +
    +
    optional
    +
    + + + + + + + + + + +foo: number = 1 + +

    {number} some parameter

    +
    +
    + +
    +
    optional
    +
    + + + + + + + + + + +bar: string = bar + +
    +
    + +
    +
    optional
    +
    + + + + + + + + + + +baz: { hello?: string; } + +
    +
    + +
    +
    +
    + +
    +
    + + + + + + + + + + +...strings: string[] + +
    +
    +
    +
    +

    + + + + + + + + + + +Return Type

    + +
    +
    string + +

    a new string

    +
    +
    +
    +
    + +
    +
    Foo + +

    bar

    +
    +
    +
    +
    +
    +
    +
    +
    +

    Usage

    import { d } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-56.snap b/tests/snapshots/html_test__html_doc_files_rewrite-56.snap new file mode 100644 index 00000000..fc363a77 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-56.snap @@ -0,0 +1,353 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + functionWithOptionalParameters - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    + function functionWithOptionalParameters +
    + + + + + + + + + + + +functionWithOptionalParameters(
    foo?: number,
    bar?: number,
    baz?: [number],
    unnamed 3?: string[],
    unnamed 4?: { qux: number; },
    ): void
    +
    +
    +

    + + + + + + + + + + +Parameters

    + +
    +
    optional
    +
    + + + + + + + + + + +foo: number = 1 + +
    +
    + +
    +
    optional
    +
    + + + + + + + + + + +bar: number + +
    +
    + +
    +
    optional
    +
    + + + + + + + + + + +baz: [number] + +
    +
    + +
    +
    optional
    +
    + + + + + + + + + + +unnamed 3: string[] + +
    +
    + +
    +
    optional
    +
    + + + + + + + + + + +unnamed 4: { qux: number; } + +
    +
    +
    +
    +

    + + + + + + + + + + +Return Type

    + +
    +
    void + +
    +
    +
    +
    + +
    +
    + +

    bar

    +
    +
    +
    + +
    +
    +
    +
    +
    +
    +
    +

    Usage

    import { functionWithOptionalParameters } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-57.snap b/tests/snapshots/html_test__html_doc_files_rewrite-57.snap new file mode 100644 index 00000000..fd485338 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-57.snap @@ -0,0 +1,277 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + qaz - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { qaz } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-58.snap b/tests/snapshots/html_test__html_doc_files_rewrite-58.snap new file mode 100644 index 00000000..78f462d8 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-58.snap @@ -0,0 +1,67 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + someVariable - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    + variable someVariable +
    +
    +
    +
    +
    +

    Usage

    import { someVariable } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-59.snap b/tests/snapshots/html_test__html_doc_files_rewrite-59.snap new file mode 100644 index 00000000..60770f81 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-59.snap @@ -0,0 +1,178 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + x - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { x } from ".";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-60.snap b/tests/snapshots/html_test__html_doc_files_rewrite-60.snap new file mode 100644 index 00000000..1b6b48a7 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-60.snap @@ -0,0 +1,127 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + c - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    f
    +
    + x + +
    No documentation available
    +
    +
    +
    +
    +
    +
    +
    +

    Usage

    import * as c from "c";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-61.snap b/tests/snapshots/html_test__html_doc_files_rewrite-61.snap new file mode 100644 index 00000000..248833ad --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-61.snap @@ -0,0 +1,186 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + x - c - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { x } from "c";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-62.snap b/tests/snapshots/html_test__html_doc_files_rewrite-62.snap new file mode 100644 index 00000000..6b95dacc --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-62.snap @@ -0,0 +1,127 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + d - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    f
    +
    + externalFunction + +
    No documentation available
    +
    +
    +
    +
    +
    +
    +
    +

    Usage

    import * as mod from "d";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-63.snap b/tests/snapshots/html_test__html_doc_files_rewrite-63.snap new file mode 100644 index 00000000..9fc08737 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-63.snap @@ -0,0 +1,186 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + externalFunction - d - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { externalFunction } from "d";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-64.snap b/tests/snapshots/html_test__html_doc_files_rewrite-64.snap new file mode 100644 index 00000000..e4eeac79 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-64.snap @@ -0,0 +1,159 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + foo - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +
    f
    +
    + x + +
    No documentation available
    +
    +
    +
    +
    v
    +
    + default + +

    The default export item.

    +
    +
    +
    +
    +
    +
    +
    +
    +

    Usage

    import * as bar from "foo";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-65.snap b/tests/snapshots/html_test__html_doc_files_rewrite-65.snap new file mode 100644 index 00000000..17abc251 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-65.snap @@ -0,0 +1,109 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + default - foo - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import bar from "foo";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-66.snap b/tests/snapshots/html_test__html_doc_files_rewrite-66.snap new file mode 100644 index 00000000..c5f81334 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-66.snap @@ -0,0 +1,186 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- + + + + x - foo - documentation + + + + + + + + + + +
    +
    +
    +
    +
    +

    Usage

    import { x } from "foo";
    +
    +
    +
    +
    +
    + + diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-67.snap b/tests/snapshots/html_test__html_doc_files_rewrite-67.snap new file mode 100644 index 00000000..4778501f --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-67.snap @@ -0,0 +1,15 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- +// deno-fmt-ignore-file +// deno-lint-ignore-file +/** + * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io) + * + * Copyright (c) 2023 Kiro Risk (http://kiro.me) + * All Rights Reserved. Apache Software License 2.0 + * + * http://www.apache.org/licenses/LICENSE-2.0 + */ +var e,t;e=this,t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?$.getFn:n,o=t.fieldNormWeight,c=void 0===o?$.fieldNormWeight:o;r(this,e),this.norm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(F).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),c=parseFloat(Math.round(o*r)/r);return n.set(i,c),c},clear:function(){n.clear()}}}(c,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return o(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,m(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();m(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?$.getFn:r,o=n.fieldNormWeight,c=void 0===o?$.fieldNormWeight:o,a=new R({getFn:i,fieldNormWeight:c});return a.setKeys(e.map(A)),a.setSources(t),a.create(),a}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,c=t.expectedLocation,a=void 0===c?0:c,s=t.distance,u=void 0===s?$.distance:s,h=t.ignoreLocation,l=void 0===h?$.ignoreLocation:h,f=r/e.length;if(l)return f;var d=Math.abs(a-o);return u?f+d/u:d?1:f}var W=32;function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?$.location:i,c=r.distance,a=void 0===c?$.distance:c,s=r.threshold,u=void 0===s?$.threshold:s,h=r.findAllMatches,l=void 0===h?$.findAllMatches:h,f=r.minMatchCharLength,d=void 0===f?$.minMatchCharLength:f,v=r.includeMatches,g=void 0===v?$.includeMatches:v,y=r.ignoreLocation,p=void 0===y?$.ignoreLocation:y;if(t.length>W)throw new Error("Pattern length exceeds max of ".concat(W,"."));for(var m,k=t.length,M=e.length,b=Math.max(0,Math.min(o,M)),x=u,w=b,S=d>1||g,L=S?Array(M):[];(m=e.indexOf(t,w))>-1;){var _=N(t,{currentLocation:m,expectedLocation:b,distance:a,ignoreLocation:p});if(x=Math.min(_,x),w=m+k,S)for(var O=0;O=P;D-=1){var K=D-1,q=n[e.charAt(K)];if(S&&(L[K]=+!!q),z[D]=(z[D+1]<<1|1)&q,E&&(z[D]|=(j[D+1]|j[D])<<1|1|j[D+1]),z[D]&C&&(A=N(t,{errors:E,currentLocation:K,expectedLocation:b,distance:a,ignoreLocation:p}))<=x){if(x=A,(w=K)<=b)break;P=Math.max(1,2*b-w)}}if(N(t,{errors:E+1,currentLocation:b,expectedLocation:b,distance:a,ignoreLocation:p})>x)break;j=z}var B={isMatch:w>=0,score:Math.max(.001,A)};if(S){var J=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.minMatchCharLength,n=[],r=-1,i=-1,o=0,c=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}(L,d);J.length?g&&(B.indices=J):B.isMatch=!1}return B}function z(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,c=void 0===o?$.location:o,a=i.threshold,s=void 0===a?$.threshold:a,u=i.distance,h=void 0===u?$.distance:u,l=i.includeMatches,f=void 0===l?$.includeMatches:l,d=i.findAllMatches,v=void 0===d?$.findAllMatches:d,g=i.minMatchCharLength,y=void 0===g?$.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?$.isCaseSensitive:p,k=i.ignoreLocation,M=void 0===k?$.ignoreLocation:k;if(r(this,e),this.options={location:c,threshold:s,distance:h,includeMatches:f,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:M},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var b=function(e,t){n.chunks.push({pattern:e,alphabet:z(e),startIndex:t})},x=this.pattern.length;if(x>W){for(var w=0,S=x%W,L=x-S;w1&&void 0!==arguments[1]?arguments[1]:{},c=o.location,a=void 0===c?$.location:c,s=o.threshold,u=void 0===s?$.threshold:s,h=o.distance,l=void 0===h?$.distance:h,f=o.includeMatches,d=void 0===f?$.includeMatches:f,v=o.findAllMatches,g=void 0===v?$.findAllMatches:v,y=o.minMatchCharLength,p=void 0===y?$.minMatchCharLength:y,m=o.isCaseSensitive,k=void 0===m?$.isCaseSensitive:m,M=o.ignoreLocation,b=void 0===M?$.ignoreLocation:M;return r(this,n),(i=t.call(this,e))._bitapSearch=new D(e,{location:a,threshold:u,distance:l,includeMatches:d,findAllMatches:g,minMatchCharLength:p,isCaseSensitive:k,ignoreLocation:b}),i}return o(n,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(K),X=function(e){a(n,e);var t=l(n);function n(e){return r(this,n),t.call(this,e)}return o(n,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(K),Y=[B,X,U,V,H,G,J,Q],Z=Y.length,ee=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,te=new Set([Q.type,X.type]),ne=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.isCaseSensitive,o=void 0===i?$.isCaseSensitive:i,c=n.includeMatches,a=void 0===c?$.includeMatches:c,s=n.minMatchCharLength,u=void 0===s?$.minMatchCharLength:s,h=n.ignoreLocation,l=void 0===h?$.ignoreLocation:h,f=n.findAllMatches,d=void 0===f?$.findAllMatches:f,v=n.location,g=void 0===v?$.location:v,y=n.threshold,p=void 0===y?$.threshold:y,m=n.distance,k=void 0===m?$.distance:m;r(this,e),this.query=null,this.options={isCaseSensitive:o,includeMatches:a,minMatchCharLength:u,findAllMatches:d,ignoreLocation:l,location:g,threshold:p,distance:k},this.pattern=o?t:t.toLowerCase(),this.query=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(ee).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i2&&void 0!==arguments[2]?arguments[2]:{}).auto,r=void 0===n||n;return ue(e)||(e=he(e)),function e(n){var i=Object.keys(n),o=function(e){return!!e[ae]}(n);if(!o&&i.length>1&&!ue(n))return e(he(n));if(function(e){return!g(e)&&b(e)&&!ue(e)}(n)){var c=o?n[ae]:i[0],a=o?n[se]:n[c];if(!m(a))throw new Error(function(e){return"Invalid value for key ".concat(e)}(c));var s={keyId:C(c),pattern:a};return r&&(s.searcher=ie(a,t)),s}var u={children:[],operator:i[0]};return i.forEach((function(t){var r=n[t];g(r)&&r.forEach((function(t){u.children.push(e(t))}))})),u}(e)}function fe(e,t){var n=e.matches;t.matches=[],x(n)&&n.forEach((function(e){if(x(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function de(e,t){t.score=e.score}var ve=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;r(this,e),this.options=t(t({},$),i),this.options.useExtendedSearch,this._keyStore=new j(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof R))throw new Error("Incorrect 'index' type");this._myIndex=t||P(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{}).limit,n=void 0===t?-1:t,r=this.options,i=r.includeMatches,o=r.includeScore,c=r.shouldSort,a=r.sortFn,s=r.ignoreFieldNorm,u=m(e)?m(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){var n=t.ignoreFieldNorm,r=void 0===n?$.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,i=e.norm,o=e.score,c=n?n.weight:null;t*=Math.pow(0===o&&c?Number.EPSILON:o,(c||1)*(r?1:i))})),e.score=t}))}(u,{ignoreFieldNorm:s}),c&&u.sort(a),k(n)&&n>-1&&(u=u.slice(0,n)),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?$.includeMatches:r,o=n.includeScore,c=void 0===o?$.includeScore:o,a=[];return i&&a.push(fe),c&&a.push(de),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return a.length&&a.forEach((function(t){t(e,r)})),r}))}(u,this._docs,{includeMatches:i,includeScore:o})}},{key:"_searchStringList",value:function(e){var t=ie(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(x(n)){var c=t.searchIn(n),a=c.isMatch,s=c.score,u=c.indices;a&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=le(e,this.options),r=function e(n,r,i){if(!n.children){var o=n.keyId,c=n.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:c});return a&&a.length?[{idx:i,item:r,matches:a}]:[]}for(var s=[],u=0,h=n.children.length;u1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?$.getFn:n,i=t.fieldNormWeight,o=void 0===i?$.fieldNormWeight:i,c=e.keys,a=e.records,s=new R({getFn:r,fieldNormWeight:o});return s.setKeys(c),s.setIndexRecords(a),s},ve.config=$,function(){re.push.apply(re,arguments)}(ne),ve},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t(); diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-68.snap b/tests/snapshots/html_test__html_doc_files_rewrite-68.snap new file mode 100644 index 00000000..e67d0c9c --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-68.snap @@ -0,0 +1,39 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- +function findParent(el, find) { + do { + if (find(el)) { + return el; + } + } while (el = el.parentElement); +} + +document.addEventListener("click", (e) => { + const target = findParent( + e.target, + (el) => el instanceof HTMLButtonElement && el.dataset["copy"], + ); + if (target) { + navigator?.clipboard?.writeText(target.dataset["copy"]); + target.classList.add("copied"); + setTimeout(() => target.classList.remove("copied"), 1000); + } +}); + +window.addEventListener("load", () => { + const usageSelector = document.getElementById("usageSelector"); + + document.addEventListener("mouseup", (e) => { + if ( + findParent( + e.target, + (el) => + el.parentElement === usageSelector && el instanceof HTMLDivElement, + ) + ) { + usageSelector.open = false; + } + }); +}); diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-69.snap b/tests/snapshots/html_test__html_doc_files_rewrite-69.snap new file mode 100644 index 00000000..33d6c4a7 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-69.snap @@ -0,0 +1,145 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- +const Fuse = window.Fuse; + +const searchInput = document.querySelector("#searchbar"); +const contentDiv = document.querySelector("#content"); +const searchResultsDiv = document.querySelector("#searchResults"); +const currentFile = + document.querySelector("meta[name='doc-current-file']").attributes + .getNamedItem("content").value; +const pathToRoot = "../".repeat( + currentFile ? (currentFile.split("/").length + 1) : 0, +); +searchInput.removeAttribute("style"); + +const SEARCH_INDEX = window.DENO_DOC_SEARCH_INDEX; + +const fuse = new Fuse(SEARCH_INDEX.nodes, { + keys: [{ + name: "name", + weight: 2, + }], + isCaseSensitive: false, + minMatchCharLength: 2, + threshold: 0.4, +}); + +const loadedUrl = new URL(window.location.href); +const val = loadedUrl.searchParams.get("q"); +if (val) { + searchInput.value = val; + doSearch(val); +} + +window.addEventListener("load", function () { + document.addEventListener("keydown", function (event) { + if (event.key.toLowerCase() === "s") { + if (event.target !== searchInput) { + searchInput.focus(); + event.preventDefault(); + } + } + }); + + const emptyPlaceholder = "Click or press 'S' to search..."; + searchInput.placeholder = emptyPlaceholder; + + searchInput.addEventListener("focus", function () { + searchInput.placeholder = "Type your query here..."; + }); + + searchInput.addEventListener("blur", function () { + searchInput.placeholder = emptyPlaceholder; + }); +}); + +function debounce(func, delay) { + let timerId; + + return function () { + const context = this; + const args = arguments; + + clearTimeout(timerId); + + timerId = setTimeout(function () { + func.apply(context, args); + }, delay); + }; +} + +const debouncedSearch = debounce(doSearch, 250); + +searchInput.addEventListener("input", (e) => { + const val = e.target.value; + debouncedSearch(val); +}); + +function doSearch(val) { + if (!val) { + updateCurrentLocation(val); + showPage(); + } else { + const results = searchInIndex(val); + // console.log("results", results); + updateCurrentLocation(val); + renderResults(results); + showSearchResults(); + } +} + +function updateCurrentLocation(val) { + const url = new URL(window.location.href); + if (val) { + url.searchParams.set("q", val); + } else { + url.searchParams.delete("q"); + } + window.history.replaceState({}, "", url.href); +} + +function showPage() { + contentDiv.style.display = "flex"; + searchResultsDiv.style.display = "none"; +} + +function showSearchResults() { + contentDiv.style.display = "none"; + searchResultsDiv.style.display = "block"; +} + +function renderResults(results) { + if (results.length === 0) { + searchResultsDiv.innerHTML = `No result`; + return; + } + + let html = `
      `; + + for (const result of results) { + const kind = result.kind.map((kind) => { + return `
      ${kind.char}
      `; + }).join(""); + + html += `
    • + +
      +
      + ${kind} +
      + ${result.name} +
      +
      +
    • `; + } + + html += `
    `; + searchResultsDiv.innerHTML = html; +} + +function searchInIndex(val) { + return fuse.search(val).map((result) => result.item); +} diff --git a/tests/snapshots/html_test__html_doc_files_rewrite-70.snap b/tests/snapshots/html_test__html_doc_files_rewrite-70.snap new file mode 100644 index 00000000..74fd2618 --- /dev/null +++ b/tests/snapshots/html_test__html_doc_files_rewrite-70.snap @@ -0,0 +1,7 @@ +--- +source: tests/html_test.rs +expression: files.get(file_name).unwrap() +--- +(function () { + window.DENO_DOC_SEARCH_INDEX = {"nodes":[{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"A","file":".","doc":"","url":"././~/A.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"AbstractClass","file":".","doc":"","url":"././~/AbstractClass.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"AbstractClass.prototype.method","file":".","doc":"","url":"././~/AbstractClass.prototype.method.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"AbstractClass.prototype.getter","file":".","doc":"","url":"././~/AbstractClass.prototype.getter.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"AbstractClass.prototype.foo","file":".","doc":"","url":"././~/AbstractClass.prototype.foo.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"B","file":".","doc":"","url":"././~/B.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"Bar","file":".","doc":"> Some quote in bar docs\n> This quote part is ignored\n> when getting the title of this doc\n\nBar docs","url":"././~/Bar.html","deprecated":false},{"kind":[{"char":"T","kind":"TypeAlias","title":"Type Alias"}],"name":"Baz","file":".","doc":"","url":"././~/Baz.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Baz.bar","file":".","doc":"","url":"././~/Baz.bar.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Baz.foo","file":".","doc":"","url":"././~/Baz.foo.html","deprecated":false},{"kind":[{"char":"I","kind":"Interface","title":"Interface"}],"name":"EmptyInterface","file":".","doc":"","url":"././~/EmptyInterface.html","deprecated":false},{"kind":[{"char":"E","kind":"Enum","title":"Enum"}],"name":"Enum","file":".","doc":"","url":"././~/Enum.html","deprecated":false},{"kind":[{"char":"E","kind":"Enum","title":"Enum"}],"name":"Enum2","file":".","doc":"","url":"././~/Enum2.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"Foo","file":".","doc":"some Foo docs {@linkcode Bar}\n","url":"././~/Foo.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.[Symbol.iterator]","file":".","doc":"","url":"././~/Foo.prototype.[Symbol.iterator].html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.getter","file":".","doc":"","url":"././~/Foo.prototype.getter.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.setter","file":".","doc":"","url":"././~/Foo.prototype.setter.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.getterAndSetter","file":".","doc":"","url":"././~/Foo.prototype.getterAndSetter.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.getterAndSetter","file":".","doc":"","url":"././~/Foo.prototype.getterAndSetter.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.staticSetter","file":".","doc":"","url":"././~/Foo.staticSetter.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.test","file":".","doc":"","url":"././~/Foo.prototype.test.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.staticMethod","file":".","doc":"","url":"././~/Foo.staticMethod.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.methodWithOverloads","file":".","doc":"","url":"././~/Foo.prototype.methodWithOverloads.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.methodWithOverloads","file":".","doc":"","url":"././~/Foo.prototype.methodWithOverloads.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Foo.prototype.methodWithOverloads","file":".","doc":"","url":"././~/Foo.prototype.methodWithOverloads.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.bar","file":".","doc":"","url":"././~/Foo.bar.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.prototype.protectedProperty","file":".","doc":"","url":"././~/Foo.prototype.protectedProperty.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.prototype.readonlyProperty","file":".","doc":"","url":"././~/Foo.prototype.readonlyProperty.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.prototype.foo","file":".","doc":"","url":"././~/Foo.prototype.foo.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Foo.prototype.\"><img src=x onerror=alert(1)>","file":".","doc":"","url":"././~/Foo.prototype.\">.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"}],"name":"Foobar","file":".","doc":"```ts\n// This code block is ignored when getting the title of this doc\nconst foobar = new Foobar();\n```\n\nFoobar docs\n\n# heading\n\ncontent\n\n## sub heading\n","url":"././~/Foobar.html","deprecated":false},{"kind":[{"char":"I","kind":"Interface","title":"Interface"}],"name":"Hello","file":".","doc":"","url":"././~/Hello.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Hello.optionalMethod","file":".","doc":"","url":"././~/Hello.optionalMethod.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"Hello.computedMethod","file":".","doc":"","url":"././~/Hello.computedMethod.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Hello.world","file":".","doc":"","url":"././~/Hello.world.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Hello.test","file":".","doc":"Some docs","url":"././~/Hello.test.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Hello.ab","file":".","doc":"","url":"././~/Hello.ab.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"Hello.x","file":".","doc":"","url":"././~/Hello.x.html","deprecated":false},{"kind":[{"char":"I","kind":"Interface","title":"Interface"}],"name":"InterfaceWithIndexSignature","file":".","doc":"","url":"././~/InterfaceWithIndexSignature.html","deprecated":false},{"kind":[{"char":"c","kind":"Class","title":"Class"},{"char":"N","kind":"Namespace","title":"Namespace"}],"name":"Testing","file":".","doc":"","url":"././~/Testing.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"Testing.t","file":".","doc":"","url":"././~/Testing.t.html","deprecated":false},{"kind":[{"char":"T","kind":"TypeAlias","title":"Type Alias"}],"name":"TypeAlias","file":".","doc":"","url":"././~/TypeAlias.html","deprecated":false},{"kind":[{"char":"v","kind":"Variable","title":"Variable"}],"name":"anotherVariable","file":".","doc":"","url":"././~/anotherVariable.html","deprecated":false},{"kind":[{"char":"m","kind":"Method","title":"Method"}],"name":"anotherVariable.bar","file":".","doc":"","url":"././~/anotherVariable.bar.html","deprecated":false},{"kind":[{"char":"p","kind":"Property","title":"Property"}],"name":"anotherVariable.foo","file":".","doc":"","url":"././~/anotherVariable.foo.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"c","file":".","doc":"","url":"././~/c.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"d","file":".","doc":"","url":"././~/d.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"functionWithOptionalParameters","file":".","doc":"","url":"././~/functionWithOptionalParameters.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"}],"name":"qaz","file":".","doc":"content\n","url":"././~/qaz.html","deprecated":false},{"kind":[{"char":"v","kind":"Variable","title":"Variable"}],"name":"someVariable","file":".","doc":"","url":"././~/someVariable.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"Testing.x","file":"c","doc":"","url":"./c/~/Testing.x.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"},{"char":"f","kind":"Function","title":"Function"}],"name":"x","file":"c","doc":"","url":"./c/~/x.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"Testing.externalFunction","file":"d","doc":"","url":"./d/~/Testing.externalFunction.html","deprecated":false},{"kind":[{"char":"f","kind":"Function","title":"Function"}],"name":"externalFunction","file":"d","doc":"","url":"./d/~/externalFunction.html","deprecated":false},{"kind":[{"char":"v","kind":"Variable","title":"Variable"}],"name":"default","file":"foo","doc":"The default export item.\n\nThis item reproduces the issue reported in {@link https://github.com/jsr-io/jsr/issues/459}","url":"./foo/~/default.html","deprecated":false}]}; +})() From f64c5d9d7a1d9c6ae03c474e1c3076e53d3f44fc Mon Sep 17 00:00:00 2001 From: crowlkats Date: Tue, 17 Dec 2024 05:46:43 +0100 Subject: [PATCH 5/6] fix --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f62cb1e..f8eea8bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,7 +77,7 @@ jobs: - name: Generate code coverage if: contains(matrix.os, 'ubuntu') - run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + run: cargo llvm-cov --lcov --output-path lcov.info - name: Upload coverage to Codecov if: contains(matrix.os, 'ubuntu') From 0e750407d7422db9ec0772de5c149288cbf0e247 Mon Sep 17 00:00:00 2001 From: crowlkats Date: Thu, 19 Dec 2024 21:26:22 +0100 Subject: [PATCH 6/6] fix --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8eea8bf..396104a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,7 @@ jobs: with: files: lcov.info fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} - name: Publish if: |