-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving documentation for realm
#6508
Conversation
f9464c6
to
8a338bc
Compare
This failure seems unrelated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making these updates!
export type ObjectChangeCallback<T> = ( | ||
/** | ||
* The object that changed. | ||
*/ object: RealmObject<T> & T, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*/ object: RealmObject<T> & T, | |
*/ | |
object: RealmObject<T> & T, |
insertions: number[]; | ||
/** | ||
* The indices in the collection where objects were modified. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The indices in the collection where objects were modified. | |
* The indices in the collection where objects were deleted. |
deletions: number[]; | ||
/** | ||
* The indices in the collection where objects were modified. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The indices in the collection where objects were modified. | |
* The indices in the new state of the collection where objects were modified. |
newModifications: number[]; | ||
/** | ||
* The indices in the collection where objects were deleted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The indices in the collection where objects were deleted. | |
* The indices in the old state of the collection where objects were modified. |
export type CollectionChangeCallback<T = unknown, EntryType extends [unknown, unknown] = [unknown, unknown]> = ( | ||
/** | ||
* The collection instance that changed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The collection instance that changed, | |
* The collection instance that changed. |
@@ -1271,6 +1317,10 @@ export namespace Realm { | |||
export import ObjectClass = internal.RealmObjectConstructor; | |||
/** @deprecated Will be removed in v13.0.0. Please use {@link internal.PropertyTypeName} */ | |||
export import PropertyType = internal.PropertyTypeName; | |||
/** @deprecated Use the another {@link internal.ClientResetMode} than {@link internal.ClientResetMode.Manual}. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To show slightly friendlier names for users you can show just the part excluding internal.
(e.g. as such: previous comment. (Just readding it because I don't know if you saw the other reply 👍 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure why you suggested that - but now it makes perfect sense. Thanks!
@@ -1,12 +1,12 @@ | |||
{ | |||
"entryPoints": ["src/index.ts"], | |||
"tsconfig": "./tsconfig.json", | |||
"entryPoints": ["dist/public-types/index.d.ts"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I've just pushed an update with your feedback: 6e60915 |
* Improving typedoc config * Adding missing exports * Update deprecated-global.ts
What, How & Why?
After #6492 we're able to generate more clean documentation.
NOTE: This PR also introduce exports of a couple of types that we haven't historically exported, but was referenced by other public APIs.