Skip to content

Commit

Permalink
Kotlinify Dynamic (facebook#43905)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#43905

Changelog: [Internal]

As part of the Sustainability Week (see [post](https://fb.workplace.com/groups/251759413609061/permalink/742797531171911/)).

Reviewed By: cortinico

Differential Revision: D55793644

fbshipit-source-id: 8808bebfdc04d50ec8562839b7a20c6ecdc188ff
  • Loading branch information
fabriziocucci authored and facebook-github-bot committed Apr 7, 2024
1 parent bbb7d2c commit 5927165
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.bridge;
package com.facebook.react.bridge

/**
* Type representing a piece of data with unknown runtime type. Useful for allowing javascript to
* pass one of multiple types down to the native layer.
*/
public interface Dynamic {
boolean isNull();
public fun asArray(): ReadableArray

boolean asBoolean();
public fun asBoolean(): Boolean

double asDouble();
public fun asDouble(): Double

int asInt();
public fun asInt(): Int

String asString();
public fun asMap(): ReadableMap

ReadableArray asArray();
public fun asString(): String

ReadableMap asMap();
public fun getType(): ReadableType

ReadableType getType();
public fun isNull(): Boolean

void recycle();
public fun recycle(): Unit
}

0 comments on commit 5927165

Please sign in to comment.