4.0.7 • Published 4 months ago

@types/ember__helper v4.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Installation

npm install --save @types/ember__helper

Summary

This package contains type definitions for @ember/helper (https://github.com/emberjs/ember.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ember__helper.

index.d.ts

// Type definitions for non-npm package @ember/helper 4.0
// Project: https://github.com/emberjs/ember.js
// Definitions by: Chris Krycho <https://github.com/chriskrycho>
//                 Dan Freeman <https://github.com/dfreeman>
//                 James C. Davis <https://github.com/jamescdavis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.4

import { Opaque } from 'ember/-private/type-utils';

// In normal TypeScript, these helpers are essentially opaque tokens
// that just need to be importable. Declaring them with unique interfaces
// like this, however, gives tools like Glint (that DO have a richer
// notion of what they are) a place to install more detailed type information.
export interface ArrayHelper extends Opaque<'helper:array'> {}
export interface ConcatHelper extends Opaque<'helper:concat'> {}
export interface FnHelper extends Opaque<'helper:fn'> {}
export interface GetHelper extends Opaque<'helper:get'> {}
export interface HashHelper extends Opaque<'helper:hash'> {}

/**
 * Use the `{{array}}` helper to create an array to pass as an option to your components.
 *
 * @see https://api.emberjs.com/ember/4.1/classes/Ember.Templates.helpers/methods/array?anchor=array
 */
export const array: ArrayHelper;

/**
 * Concatenates the given arguments into a string.
 *
 * @see https://api.emberjs.com/ember/4.1/classes/Ember.Templates.helpers/methods/concat?anchor=concat
 */
export const concat: ConcatHelper;

/**
 * The `fn` helper allows you to ensure a function that you are passing off to another component, helper, or modifier
 * has access to arguments that are available in the template.
 *
 * @see https://api.emberjs.com/ember/4.1/classes/Ember.Templates.helpers/methods/fn?anchor=fn
 */
export const fn: FnHelper;

/**
 * Dynamically look up a property on an object.
 *
 * @see https://api.emberjs.com/ember/4.1/classes/Ember.Templates.helpers/methods/get?anchor=get
 */
export const get: GetHelper;

/**
 * Use the `{{hash}}` helper to create a hash to pass as an option to your components.
 *
 * @see https://api.emberjs.com/ember/4.1/classes/Ember.Templates.helpers/methods/hash?anchor=hash
 */
export const hash: HashHelper;

Additional Details

  • Last updated: Fri, 04 Feb 2022 21:01:29 GMT
  • Dependencies: @types/ember
  • Global values: none

Credits

These definitions were written by Chris Krycho, Dan Freeman, and James C. Davis.

4.0.7

4 months ago

4.0.6

4 months ago

4.0.5

6 months ago

4.0.4

7 months ago

4.0.3

8 months ago

4.0.2

11 months ago

4.0.1

2 years ago

4.0.0

2 years ago