- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
61 lines
1.4 KiB
Objective-C
61 lines
1.4 KiB
Objective-C
// Copyright 2022-present 650 Industries. All rights reserved.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <ExpoModulesCore/EXJavaScriptObject.h>
|
|
|
|
#ifdef __cplusplus
|
|
#import <jsi/jsi.h>
|
|
namespace jsi = facebook::jsi;
|
|
#endif // __cplusplus
|
|
|
|
@class EXJavaScriptRuntime;
|
|
@class EXRawJavaScriptFunction;
|
|
@class EXJavaScriptTypedArray;
|
|
|
|
/**
|
|
Represents any JavaScript value. Its purpose is to exposes `facebook::jsi::Value` API back to Swift.
|
|
*/
|
|
NS_SWIFT_NAME(JavaScriptValue)
|
|
@interface EXJavaScriptValue : NSObject
|
|
|
|
#ifdef __cplusplus
|
|
- (nonnull instancetype)initWithRuntime:(nonnull EXJavaScriptRuntime *)runtime
|
|
value:(std::shared_ptr<jsi::Value>)value;
|
|
|
|
/**
|
|
\return the underlying `jsi::Value`.
|
|
*/
|
|
- (nonnull jsi::Value *)get;
|
|
#endif // __cplusplus
|
|
|
|
#pragma mark - Type checking
|
|
|
|
- (BOOL)isUndefined;
|
|
- (BOOL)isNull;
|
|
- (BOOL)isBool;
|
|
- (BOOL)isNumber;
|
|
- (BOOL)isString;
|
|
- (BOOL)isSymbol;
|
|
- (BOOL)isObject;
|
|
- (BOOL)isFunction;
|
|
- (BOOL)isTypedArray;
|
|
|
|
#pragma mark - Type casting
|
|
|
|
- (nullable id)getRaw;
|
|
- (BOOL)getBool;
|
|
- (NSInteger)getInt;
|
|
- (double)getDouble;
|
|
- (nonnull NSString *)getString;
|
|
- (nonnull NSArray<EXJavaScriptValue *> *)getArray;
|
|
- (nonnull NSDictionary<NSString *, id> *)getDictionary;
|
|
- (nonnull EXJavaScriptObject *)getObject;
|
|
- (nonnull EXRawJavaScriptFunction *)getFunction;
|
|
- (nullable EXJavaScriptTypedArray *)getTypedArray;
|
|
|
|
#pragma mark - Helpers
|
|
|
|
- (nonnull NSString *)toString;
|
|
|
|
@end
|