Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/ember__modifier
Advanced tools
TypeScript definitions for @ember/modifier
npm install --save @types/ember__modifier
This package contains type definitions for @ember/modifier (https://github.com/emberjs/ember.js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ember__modifier.
import Owner from "@ember/owner";
import { Opaque } from "ember/-private/type-utils";
// In normal TypeScript, this modifier is essentially an opaque token
// that just needs to be importable. Declaring it with a unique interface
// like this, however, gives tools like Glint (that DO have a richer
// notion of what it is) a place to install more detailed type information.
export interface OnModifier extends Opaque<"modifier:on"> {}
/**
* The `{{on}}` modifier lets you easily add event listeners.
*
* @see https://api.emberjs.com/ember/4.1/classes/Ember.Templates.helpers/methods/on?anchor=on
*/
export const on: OnModifier;
/**
* Given a modifier manager factory and a modifier, tell Ember to set the
* manager returned by that factory as the manager for the modifier.
*
* @param factory A function which takes an `owner` and returns a [modifier
* manager](https://emberjs.github.io/rfcs/0373-Element-Modifier-Managers.html).
* @param modifier The modifier definition to associate with the manager.
*/
export function setModifierManager<T>(factory: (owner: Owner) => unknown, modifier: T): T;
export interface ModifierCapabilitiesVersions {
// passes factoryFor(...).class to `.createModifier`
// uses args proxy, does not provide a way to opt-out
"3.22": {
disableAutoTracking?: boolean;
};
}
export interface ModifierCapabilities {
disableAutoTracking: boolean;
}
/**
* Given a target version of Ember, return an opaque token which Ember can use
* to determine what a given modifier manager supports.
*/
export function capabilities<Version extends keyof ModifierCapabilitiesVersions>(
managerAPI: Version,
optionalFeatures?: ModifierCapabilitiesVersions[Version],
): ModifierCapabilities;
These definitions were written by Krystan HuffMenne, James C. Davis, and Peter Wagenet.
FAQs
TypeScript definitions for @ember/modifier
The npm package @types/ember__modifier receives a total of 8,482 weekly downloads. As such, @types/ember__modifier popularity was classified as popular.
We found that @types/ember__modifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.