Skip to content

Commit

Permalink
Merge pull request #725 from IgnaceMaes/gjs-codefences
Browse files Browse the repository at this point in the history
docs: use gjs as codefence lang
  • Loading branch information
NullVoxPopuli authored Jun 20, 2024
2 parents fc6f075 + e585e18 commit a4162f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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

0 comments on commit a4162f0

Please sign in to comment.