mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
fix: angulartics type definition for ES6 import
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
import * as angular from 'angular';
|
||||
import { angulartics } from 'angulartics';
|
||||
|
||||
namespace Analytics {
|
||||
angular.module("angulartics.app", ["angulartics"])
|
||||
.config(["$analyticsProvider", ($analyticsProvider:angulartics.IAnalyticsServiceProvider) => {
|
||||
@@ -36,3 +39,4 @@ namespace Analytics {
|
||||
$analytics.setSuperProperties({ role: 'admin' });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Vendored
+3
@@ -4,6 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
import * as angular from 'angular';
|
||||
|
||||
declare namespace angulartics {
|
||||
|
||||
interface IAngularticsStatic {
|
||||
|
||||
Reference in New Issue
Block a user