Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit a6573b3

Browse files
author
Julio Farah
authored
Publish types (#175)
* update public interface with optional parameters for .init and .initialize * remove unnecessary --declaration flag from tsc * Publish types to npm * update codeowners * update history
1 parent c706745 commit a6573b3

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- checkout
5656
- attach_workspace: { at: . }
5757
- run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
58-
- run: yarn add -D typescript && yarn run tsc --declaration
58+
- run: yarn add -D typescript && yarn run tsc
5959
- run: npm publish .
6060

6161
workflows:

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@segmentio/libraries-web-team
1+
segmentio/libraries-web-team

HISTORY.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 3.13.7 / 2020-07-29
2+
3+
- Publish types to npm
4+
- remove unnecessary --declaration flag from build script
5+
- update public interface with optional parameters for .init and .initialize
6+
- Added optional to args that get and set (#174)
7+
- Expose AJS types and update README (#173)
8+
- [Types] Move `user.js` to `user.ts` (#172)
9+
- Convert group, memory, metrics, normalize, pageDefaults and store to .ts (#171)
10+
- [TS] Move entity.js to entity.ts (#169)
11+
- v3.13.6 (#170)
12+
113
# 3.13.6 / 2020-06-15
214

315
- test: test analytics.js from a test website

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ install:
4747

4848
# Build typescript
4949
build: clean install
50-
yarn tsc --declaration
50+
yarn tsc
5151
.PHONY: build
5252

5353
# Remove temporary files and build artifacts.

lib/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ export namespace SegmentAnalytics {
105105
* Aliased to `init` for convenience.
106106
*/
107107
initialize(
108-
settings: IntegrationsSettings,
109-
options: InitOptions
108+
settings?: IntegrationsSettings,
109+
options?: InitOptions
110110
): AnalyticsJS;
111111

112112
/**
113113
* Initialize with the given integration `settings` and `options`.
114114
*
115115
* Aliased to `init` for convenience.
116116
*/
117-
init(settings: IntegrationsSettings, options: InitOptions): AnalyticsJS;
117+
init(settings?: IntegrationsSettings, options?: InitOptions): AnalyticsJS;
118118

119119
/**
120120
* Set the user's `id`.

0 commit comments

Comments
 (0)