mirror of
https://github.com/appy-one/acebase-core.git
synced 2026-05-24 22:01:23 -06:00
[PR #34] [MERGED] Optional type parameters for DataSnapshot, DataReference, and associated classes/types #34
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-core#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase-core/pull/34
Author: @futurGH
Created: 2/11/2023
Status: ✅ Merged
Merged: 4/3/2023
Merged by: @appy-one
Base:
master← Head:datareference-datasnapshot-generics📝 Commits (6)
9b7fd2eAdd optional generics to DataSnapshotc4bef58Add optional generics to DataReference7dff26fAdd DataReferenceQuery#get overloads dependent on options.snapshotse3932adAdd type parameters to a few usages of DataReference & DataSnapshot8fdaac8Add type parameters for subscriptionsfd53555Fix DataReference#update parameter type📊 Changes
22 files changed (+181 additions, -159 deletions)
View changed files
📝
dist/cjs/acebase-base.js.map(+1 -1)📝
dist/cjs/data-reference.js(+1 -1)📝
dist/cjs/data-reference.js.map(+1 -1)📝
dist/cjs/data-snapshot.js.map(+1 -1)📝
dist/cjs/subscription.js.map(+1 -1)📝
dist/esm/acebase-base.js.map(+1 -1)📝
dist/esm/data-reference.js(+1 -1)📝
dist/esm/data-reference.js.map(+1 -1)📝
dist/esm/data-snapshot.js.map(+1 -1)📝
dist/esm/subscription.js.map(+1 -1)📝
dist/types/acebase-base.d.ts(+1 -1)📝
dist/types/acebase-base.d.ts.map(+1 -1)📝
dist/types/data-reference.d.ts(+58 -46)📝
dist/types/data-reference.d.ts.map(+1 -1)📝
dist/types/data-snapshot.d.ts(+16 -15)📝
dist/types/data-snapshot.d.ts.map(+1 -1)📝
dist/types/subscription.d.ts(+1 -1)📝
dist/types/subscription.d.ts.map(+1 -1)📝
src/acebase-base.ts(+1 -1)📝
src/data-reference.ts(+65 -57)...and 2 more files
📄 Description
Closes #20.
Type parameters were added to methods in
data-snapshot.tsanddata-reference.tswhere it seemed to make sense. All type parameters default toany, so existing code will continue to function as is.There are quite a few
as anyassertions added in, but we're really just moving the assertions from user code to hidden within the library.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
childandforEachtype improvements #38