Skip to content

Commit 99b9c4f

Browse files
authored
Merge pull request rust-lang#2248 from notriddle/notriddle/typescrpt2
Update links to type schemas
2 parents 9f0a172 + 11f64f1 commit 99b9c4f

File tree

1 file changed

+4
-4
lines changed
  • src/doc/rustc-dev-guide/src/rustdoc-internals

1 file changed

+4
-4
lines changed

src/doc/rustc-dev-guide/src/rustdoc-internals/search.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ For space savings, it's also written without newlines or spaces.
4646
]
4747
```
4848

49-
[`src/librustdoc/html/static/js/externs.js`]
50-
defines an actual schema in a Closure `@typedef`.
49+
[`src/librustdoc/html/static/js/rustdoc.d.ts`]
50+
defines an actual schema in a TypeScript `type`.
5151

5252
| Key | Name | Description |
5353
| --- | -------------------- | ------------ |
@@ -68,7 +68,7 @@ with a free function called `function_name` and a struct called `Data`,
6868
with the type signature `Data, i32 -> str`,
6969
and an alias, `get_name`, that equivalently refers to `function_name`.
7070

71-
[`src/librustdoc/html/static/js/externs.js`]: https://github.com/rust-lang/rust/blob/79b710c13968a1a48d94431d024d2b1677940866/src/librustdoc/html/static/js/externs.js#L204-L258
71+
[`src/librustdoc/html/static/js/rustdoc.d.ts`]: https://github.com/rust-lang/rust/blob/2f92f050e83bf3312ce4ba73c31fe843ad3cbc60/src/librustdoc/html/static/js/rustdoc.d.ts#L344-L390
7272

7373
The search index needs to fit the needs of the `rustdoc` compiler,
7474
the `search.js` frontend,
@@ -469,7 +469,7 @@ want the libs team to be able to add new items without causing unrelated
469469
tests to fail, but standalone tests will use it more often.
470470

471471
The `ResultsTable` and `ParsedQuery` types are specified in
472-
[`externs.js`](https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/static/js/externs.js).
472+
[`rustdoc.d.ts`](https://github.com/rust-lang/rust/blob/master/src/librustdoc/html/static/js/rustdoc.d.ts).
473473

474474
For example, imagine we needed to fix a bug where a function named
475475
`constructor` couldn't be found. To do this, write two files:

0 commit comments

Comments
 (0)