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

Type declarations and template registry for Glint #1162

Merged
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
15 changes: 14 additions & 1 deletion ember-math-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,21 @@
"url": "https://github.com/RobbieTheWagner"
},
"exports": {
"./*": "./dist/*"
"./*": {
"types": "./types/*.d.ts",
"default": "./dist/*.js"
}
},
"typesVersions": {
"*": {
"*": [
"types/*"
]
}
},
"files": [
"dist",
"types",
"addon-main.cjs",
"CHANGELOG.md",
"README.md"
Expand Down Expand Up @@ -44,6 +55,7 @@
"@babel/plugin-proposal-decorators": "7.23.2",
"@babel/plugin-syntax-decorators": "7.22.10",
"@embroider/addon-dev": "^4.1.1",
"@glint/template": "^1.2.1",
"@nullvoxpopuli/eslint-configs": "3.2.2",
"@rollup/plugin-babel": "6.0.4",
"concurrently": "8.2.2",
Expand All @@ -60,6 +72,7 @@
"rollup": "^4.2.0"
},
"peerDependencies": {
"@glint/template": "^1.2.1",
"ember-source": "^4.0.0 || ^5.0.0"
},
"publishConfig": {
Expand Down
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/abs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface AbsSignature {
Positional: Positional;
Return: Return;
}

export type AbsHelper = HelperLike<AbsSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/acos.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface AcosSignature {
Positional: Positional;
Return: Return;
}

export type AcosHelper = HelperLike<AcosSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/acosh.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface AcoshSignature {
Positional: Positional;
Return: Return;
}

export type AcoshHelper = HelperLike<AcoshSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/add.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = Array<number>;
type Return = number;

export interface AddSignature {
Positional: Positional;
Return: Return;
}

export type AddHelper = HelperLike<AddSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/asin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface AsinSignature {
Positional: Positional;
Return: Return;
}

export type AsinHelper = HelperLike<AsinSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/asinh.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface AsinhSignature {
Positional: Positional;
Return: Return;
}

export type AsinhHelper = HelperLike<AsinhSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/atan.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface AtanSignature {
Positional: Positional;
Return: Return;
}

export type AtanHelper = HelperLike<AtanSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/atan2.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number1: number, number2: number];
type Return = number;

export interface Atan2Signature {
Positional: Positional;
Return: Return;
}

export type Atan2Helper = HelperLike<Atan2Signature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/atanh.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface AtanhSignature {
Positional: Positional;
Return: Return;
}

export type AtanhHelper = HelperLike<AtanhSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/cbrt.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface CbrtSignature {
Positional: Positional;
Return: Return;
}

export type CbrtHelper = HelperLike<CbrtSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/ceil.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface CeilSignature {
Positional: Positional;
Return: Return;
}

export type CeilHelper = HelperLike<CeilSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/clz32.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface Clz32Signature {
Positional: Positional;
Return: Return;
}

export type Clz32Helper = HelperLike<Clz32Signature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/cos.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface CosSignature {
Positional: Positional;
Return: Return;
}

export type CosHelper = HelperLike<CosSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/cosh.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface CoshSignature {
Positional: Positional;
Return: Return;
}

export type CoshHelper = HelperLike<CoshSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/div.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = Array<number>;
type Return = number;

export interface DivSignature {
Positional: Positional;
Return: Return;
}

export type DivHelper = HelperLike<DivSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/exp.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface ExpSignature {
Positional: Positional;
Return: Return;
}

export type ExpHelper = HelperLike<ExpSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/expm1.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface Expm1Signature {
Positional: Positional;
Return: Return;
}

export type Expm1Helper = HelperLike<Expm1Signature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/floor.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface FloorSignature {
Positional: Positional;
Return: Return;
}

export type FloorHelper = HelperLike<FloorSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/fround.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface FroundSignature {
Positional: Positional;
Return: Return;
}

export type FroundHelper = HelperLike<FroundSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/gcd.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number1: number, number2: number];
type Return = number;

export interface GcdSignature {
Positional: Positional;
Return: Return;
}

export type GcdHelper = HelperLike<GcdSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/hypot.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = Array<number>;
type Return = number;

export interface HypotSignature {
Positional: Positional;
Return: Return;
}

export type HypotHelper = HelperLike<HypotSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/imul.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number1: number, number2: number];
type Return = number;

export interface ImulSignature {
Positional: Positional;
Return: Return;
}

export type ImulHelper = HelperLike<ImulSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/lcm.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number1: number, number2: number];
type Return = number;

export interface LcmSignature {
Positional: Positional;
Return: Return;
}

export type LcmHelper = HelperLike<LcmSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/log-e.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface LogESignature {
Positional: Positional;
Return: Return;
}

export type LogEHelper = HelperLike<LogESignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/log10.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface Log10Signature {
Positional: Positional;
Return: Return;
}

export type Log10Helper = HelperLike<Log10Signature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/log1p.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface Log1PSignature {
Positional: Positional;
Return: Return;
}

export type Log1PHelper = HelperLike<Log1PSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/log2.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = [number];
type Return = number;

export interface Log2Signature {
Positional: Positional;
Return: Return;
}

export type Log2Helper = HelperLike<Log2Signature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/max.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = Array<number>;
type Return = number;

export interface MaxSignature {
Positional: Positional;
Return: Return;
}

export type MaxHelper = HelperLike<MaxSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/min.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = Array<number>;
type Return = number;

export interface MinSignature {
Positional: Positional;
Return: Return;
}

export type MinHelper = HelperLike<MinSignature>;
11 changes: 11 additions & 0 deletions ember-math-helpers/types/helpers/mod.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { HelperLike } from '@glint/template';

type Positional = Array<number>;
type Return = number;

export interface ModSignature {
Positional: Positional;
Return: Return;
}

export type ModHelper = HelperLike<ModSignature>;
Loading
Loading