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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ember/template-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ When using `ember-template-imports`, you can declare the type of a `<template>`

{% code title="app/components/shout.gts %}

```typescript
```glimmer-ts
import type { TOC } from '@ember/component/template-only';

interface ShoutSignature {
Expand Down
10 changes: 5 additions & 5 deletions packages/type-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ It's similar in concept to (and built on) the [`expect-type`][et] library.
For strict-mode templates, the `expectTypeOf` helper and `to` collection of expectations are
both directly importable from `@glint/type-test`.

```tsx
```glimmer-ts
import { expectTypeOf, to } from '@glint/type-test';

let letters = ['a', 'b', 'c'];
Expand All @@ -35,7 +35,7 @@ let letters = ['a', 'b', 'c'];
For "classic" loose-mode Ember templates, `@glint/type-test` provides a `typeTest` wrapper that
will pass `expectTypeOf` and `to` to your template as args:

```tsx
```ts
import { typeTest } from '@glint/type-test';
import { hbs } from 'ember-cli-htmlbars';

Expand All @@ -52,7 +52,7 @@ typeTest(
You can also optionally provide an initial `this` value to `typeTest` to make values available
in your template to either test inference against or to use as a basis for comparing type equality.

```tsx
```ts
import { typeTest } from '@glint/type-test';
import { hbs } from 'ember-cli-htmlbars';

Expand All @@ -72,7 +72,7 @@ typeTest(
This library provides a set of expectations to compare the type of a given value to common simple
types.

```tsx
```glimmer-ts
import { expectTypeOf, to } from '@glint/type-test';

let symbolValue = Symbol('hi');
Expand All @@ -95,7 +95,7 @@ let neverValue: never = (null as never);

It also provides expectations that allow you to compare the type of one value to that of another.

```tsx
```glimmer-ts
import { expectTypeOf, to } from '@glint/type-test';

let a: 'a' | 'b' = 'a';
Expand Down