Skip to content
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

Remove annotations no longer needed #91

Merged
merged 3 commits into from Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
556 changes: 339 additions & 217 deletions dist/main.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sig.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions lib/node/actions/core.dart
Expand Up @@ -9,29 +9,20 @@ external Core get core;

@JS()
inline class Core {
@JS()
external JSString getInput(JSString name);

@JS()
external void setOutput(JSString name, JSString value);

@JS()
external void info(JSString name);
@JS()
external void warning(JSString name);
@JS()
external void error(JSString name);

@JS()
external void addPath(JSString element);

@JS()
external void exportVariable(JSString name, JSString value);

@JS()
external void setFailed(JSString name);

@JS()
// JSPromise<String>
external JSPromise getIDToken(JSString audience);
}
1 change: 0 additions & 1 deletion lib/node/actions/exec.dart
Expand Up @@ -13,6 +13,5 @@ inline class Exec {
///
/// Output will be streamed to the live console. Returns promise with return
/// code.
@JS()
external JSPromise exec(JSString commandLine, [List<JSString> args]);
}
2 changes: 0 additions & 2 deletions lib/node/actions/http_client.dart
Expand Up @@ -6,14 +6,12 @@ import 'dart:js_interop';

@JS()
inline class HttpClient {
@JS()
external HttpClient(
JSString userAgent,
JSArray handlers,
Map requestOptions,
);

// JSPromise<JSObject>
@JS()
external JSPromise getJson(JSString requestUrl);
}
4 changes: 0 additions & 4 deletions lib/node/actions/tool_cache.dart
Expand Up @@ -14,7 +14,6 @@ inline class ToolCache {
/// @param toolName name of the tool
/// @param versionSpec version of the tool
/// @param arch optional arch. defaults to arch of computer
@JS()
external JSString find(
JSString toolName,
JSString versionSpec, [
Expand All @@ -26,14 +25,12 @@ inline class ToolCache {
/// @param url url of tool to download
/// @returns path to downloaded tool
// JSPromise<String>
@JS()
external JSPromise downloadTool(JSString url);

/// Extract a zip.
///
/// @param file path to the zip
/// @returns path to the destination directory
@JS()
external JSPromise extractZip(JSString file);

/// Caches a directory and installs it into the tool cacheDir
Expand All @@ -43,7 +40,6 @@ inline class ToolCache {
/// @param version version of the tool. semver format
/// @param arch architecture of the tool. Optional.
/// Defaults to machine architecture
@JS()
external JSPromise cacheDir(
JSString sourceDir,
JSString tool,
Expand Down
2 changes: 0 additions & 2 deletions lib/node/fs.dart
Expand Up @@ -15,10 +15,8 @@ inline class FileSystem {
FileSystem(this.fileSystem);

/// Whether the [path] exists, false otherwise.
@JS()
external JSBoolean existsSync(JSString path);

/// Read the contents of the [path].
@JS()
external JSString readFileSync(JSString path, [JSString encoding]);
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -4,7 +4,7 @@ description: The setup-dart GitHub Action - download and setup the Dart SDK.
publish_to: none

environment:
sdk: ^3.0.0-356
sdk: ^3.0.0-417

dependencies:
path: ^1.8.0
Expand Down