Skip to content

Commit

Permalink
[core] add docs links to Record implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Oct 11, 2024
1 parent 6d9bdd6 commit 0881f8a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package expo.modules.kotlin.records

// For supported types, see https://docs.expo.dev/modules/module-api/#argument-types
@Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.RUNTIME)
annotation class Field(val key: String = "")
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package expo.modules.kotlin.records

// For supported types, see https://docs.expo.dev/modules/module-api/#argument-types
interface Record
1 change: 1 addition & 0 deletions packages/expo-modules-core/ios/Core/Records/Field.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
Property wrapper for `Record`'s data members that takes part in the process of serialization to and deserialization from the dictionary.
For supported types, see https://docs.expo.dev/modules/module-api/#argument-types
*/
@propertyWrapper
public final class Field<Type: AnyArgument>: AnyFieldInternal {
Expand Down
1 change: 1 addition & 0 deletions packages/expo-modules-core/ios/Core/Records/Record.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
A protocol that allows initializing the object with a dictionary.
For supported types, see https://docs.expo.dev/modules/module-api/#argument-types
*/
public protocol Record: Convertible {
/**
Expand Down

0 comments on commit 0881f8a

Please sign in to comment.