Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use gjs as codefence lang #725

Merged
merged 2 commits into from
Jun 20, 2024
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
Loading