-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use tsc typechecking for carousel 0.1 (#36296)
* ts-carousel 0.1 * split base-element to its own file * rebase + add carousel to check-types * fixes * type auxuliary carousel funcs * address ryan feedback
- Loading branch information
Showing
7 changed files
with
255 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
declare module '#utils/log' { | ||
export var dev: any; | ||
export var user: any; | ||
export var userAssert: any; | ||
} | ||
|
||
declare module '#utils/animation' { | ||
export var Animation: any; | ||
} | ||
|
||
declare module '#utils/event-helper' { | ||
export var createCustomEvent: any; | ||
export var listen: any; | ||
} | ||
|
||
declare module '#experiments' { | ||
export var dict: any; | ||
export var isExperimentOn: any; | ||
} | ||
|
||
declare module '#service' { | ||
export var Services: any; | ||
} | ||
declare module '#utils/analytics' { | ||
export var triggerAnalyticsEvent: any; | ||
} | ||
|
||
// TODO: everything below are core stubs, which we can remove once Core has been | ||
// converted to TS. | ||
declare module '#core/constants/key-codes' { | ||
export var Keys: any; | ||
} | ||
|
||
declare module '#core/document/format' { | ||
export var isAmp4Email: any; | ||
} | ||
|
||
declare module '#core/dom/layout/viewport-observer' { | ||
export var observeIntersections: any; | ||
} | ||
|
||
declare module '#core/dom' { | ||
export var toggleAttribute: any; | ||
export var dispatchCustomEvent: any; | ||
} | ||
|
||
declare module '#core/dom/query' { | ||
export var realChildElements: any; | ||
export var closestAncestorElementBySelector: any; | ||
} | ||
|
||
declare module '#core/constants/action-constants' { | ||
export var ActionTrust: any; | ||
} | ||
|
||
declare module '#core/dom/layout' { | ||
export var isLayoutSizeFixed: any; | ||
export var isLayoutSizeDefined: any; | ||
} | ||
|
||
declare module '#core/dom/layout/size-observer' { | ||
export var observeContentSize: any; | ||
export var unobserveContentSize: any; | ||
} | ||
|
||
declare module '#core/types' { | ||
export var isFiniteNumber: any; | ||
} | ||
|
||
declare module '#core/types/object' { | ||
export var dict: any; | ||
} | ||
|
||
declare module '#core/dom/transition' { | ||
export var numeric: any; | ||
} | ||
|
||
declare module '#core/dom/style' { | ||
export var getStyle: any; | ||
export var setStyle: any; | ||
} | ||
|
||
declare module '#core/data-structures/curve' { | ||
export var bezierCurve: any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"checkJs": true, | ||
"noEmit": true, | ||
"paths": {} | ||
}, | ||
"include": ["*.js", "**/*.d.ts", "../../../src/*.d.ts"], | ||
"exclude": [] | ||
} |
Oops, something went wrong.