Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
07e67c8
fix(poool-access): fix audit sendEvent return Type
maximedasilva Jan 17, 2024
c97e51b
Merge branch 'DefinitelyTyped:master' into master
maximedasilva Mar 7, 2024
9b97556
feat(poool-access): add externalLinkClick and add Access/Audit to glo…
maximedasilva Mar 7, 2024
d5a8d69
feat(poool-access): format files
maximedasilva Mar 7, 2024
67450af
Merge branch 'master' of https://github.com/p3ol/DefinitelyTyped
maximedasilva Mar 7, 2024
9887a79
Merge branch 'master' of https://github.com/p3ol/DefinitelyTyped
maximedasilva Jun 26, 2024
75873b8
feat(poool-engage): add poool engage types
maximedasilva Jun 26, 2024
57151f7
feat(poool-engage): rename namespace
maximedasilva Jun 26, 2024
7bf2c36
Merge branch 'DefinitelyTyped:master' into master
maximedasilva Jun 26, 2024
9d4dab5
fix(poool-engage): remove useless deepency
maximedasilva Jun 26, 2024
100702c
Merge branch 'master' of https://github.com/p3ol/DefinitelyTyped
maximedasilva Jun 26, 2024
26c17db
feat(poool-engage): add type tests
maximedasilva Jun 27, 2024
a98792a
Merge branch 'DefinitelyTyped:master' into master
maximedasilva Jun 27, 2024
fdf92e3
feat(poool-engage): add type tests
maximedasilva Jun 27, 2024
6d36071
Merge branch 'master' of https://github.com/p3ol/DefinitelyTyped
maximedasilva Jun 27, 2024
3ed06b5
feat(poool-engage): fix wordings
maximedasilva Jun 27, 2024
745b543
feat(poool-engage): format files
maximedasilva Jun 27, 2024
1c9169e
Merge branch 'DefinitelyTyped:master' into master
maximedasilva Jul 8, 2024
3b155a2
feat(poool-engage): rename namespace and add a diplay condition value
maximedasilva Jul 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions types/poool-engage/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
declare global {
var Engage: PooolEngage.Engage;
var Engage: Poool.Engage;
/**
* Use PooolEngage just if you have done `Engage.noConflict()` before
*/
var PooolEngage: PooolEngage.Engage;
var PooolEngage: Poool.Engage;

interface Window {
Engage: PooolEngage.Engage;
Engage: Poool.Engage;
/**
* Use PooolEngage just if you have done `Engage.noConflict()` before
*/
PooolEngage: PooolEngage.Engage;
PooolEngage: Poool.Engage;
}
}
export namespace PooolEngage {
export namespace Poool {
interface EngageConfigOptions {
/**
* When debug mode is enabled, Engage.js will log everything it does in the browser console.
Expand Down Expand Up @@ -151,6 +151,7 @@ export namespace PooolEngage {
| "views"
| "viewsPerDay"
| "visits"
| "visitsPerDay"
| "device"
| "geoloc"
| "url"
Expand Down
9 changes: 9 additions & 0 deletions types/poool-engage/poool-engage-tests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Poool } from "poool-engage";

// $ExpectType Engage
Engage;

Expand Down Expand Up @@ -131,3 +133,10 @@ engage.autoCreate();

// $ExpectType Promise<EngageElement[]>
engage.autoCreate({ filters: ["filter"] });

// $ExpectType { id: string; type: "visitsPerDay" value: string;}
const display: Poool.EngageDisplayConditions = {
id: "id",
type: "visitsPerDay",
value: "desktop",
};