mirror of
https://github.com/aphrody-labs/oxc.git
synced 2026-10-14 22:29:17 +00:00
docs(ast): use valid variance example for TSTypeParameter (#26962)
This commit is contained in:
1 parent
6fe829bbd8
commit
f7ef2e2431
1 file changed
+4
-2
@@ -852,8 +852,10 @@ pub struct TSTypeParameterInstantiation<'a> {
|
||||
/// type Box<T extends string = 'foo'> = { value: T };
|
||||
/// // name ^ ^^^^^ default
|
||||
///
|
||||
/// function add<in T>(a: T, b: T): T { return a + b; }
|
||||
/// // ^^ in: true
|
||||
/// interface Consumer<in T> {
|
||||
/// // ^^ in: true
|
||||
/// consume(value: T): void;
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// ## References
|
||||
|
||||
Reference in new issue
Block a user