mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(prop-types): use conditional types for better prop type inference * fix(tests): fix publish tests * fix(prop-types): add custom prop validator, and switch requireables * fix(test): revert ReactFragment change * fix(prop-types): namespace imports from react like a good boy * CR changes * actually remove param from validator * remove anyvalidationmap * everyday i'm test...ering * SEMICOLONS WHY * retain null in undefaultize
16 lines
584 B
TypeScript
16 lines
584 B
TypeScript
// Type definitions for ngReact v0.3.0
|
|
// Project: https://github.com/ngReact/ngReact
|
|
// Definitions by: Vicky Lai <https://github.com/velveret>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
/// <reference types="angular"/>
|
|
/// <reference types="react"/>
|
|
|
|
declare module "ngreact" {
|
|
type ReactDirective = (reactComponentName: string | React.ComponentClass<any>,
|
|
propNames?: string[],
|
|
conf?: Object,
|
|
injectableProps?: Object) => angular.IDirective;
|
|
}
|